summaryrefslogtreecommitdiffstats
path: root/theos/certs
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-01-02 20:54:51 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2019-01-02 20:54:51 +0100
commitb297f8658a27036032aee28b74c41d99105ba8af (patch)
tree92aec3852c90add2fa108073fe17f6b484d1baa1 /theos/certs
parent29813dc703ee3cf9542a1edec68d2942e9a69ac3 (diff)
downloadfile-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.sls8
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: