diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2019-01-02 20:54:51 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2019-01-02 20:54:51 +0100 |
commit | b297f8658a27036032aee28b74c41d99105ba8af (patch) | |
tree | 92aec3852c90add2fa108073fe17f6b484d1baa1 /theos/certs | |
parent | 29813dc703ee3cf9542a1edec68d2942e9a69ac3 (diff) | |
download | file-b297f8658a27036032aee28b74c41d99105ba8af.tar.xz |
matrix: Use managed instead of copy
Copy is just a dumb copy utility, doesn't make sure they're the same.
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'theos/certs')
-rw-r--r-- | theos/certs/matrix_kyriasis_com.sls | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/theos/certs/matrix_kyriasis_com.sls b/theos/certs/matrix_kyriasis_com.sls index c1d41f8..8c88ce8 100644 --- a/theos/certs/matrix_kyriasis_com.sls +++ b/theos/certs/matrix_kyriasis_com.sls @@ -14,21 +14,17 @@ matrix.kyriasis.com: - service: nginx_service /etc/synapse/ssl/fullchain.pem: - file.copy: + file.managed: - source: /etc/letsencrypt/live/matrix.kyriasis.com/fullchain.pem - user: synapse - group: synapse - mode: 600 - - onchanges: - - acme: matrix.kyriasis.com /etc/synapse/ssl/privkey.pem: - file.copy: + file.managed: - source: /etc/letsencrypt/live/matrix.kyriasis.com/privkey.pem - user: synapse - group: synapse - mode: 600 - - onchanges: - - acme: matrix.kyriasis.com # vim: set ft=yaml et: |