From b297f8658a27036032aee28b74c41d99105ba8af Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 2 Jan 2019 20:54:51 +0100 Subject: matrix: Use managed instead of copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy is just a dumb copy utility, doesn't make sure they're the same. Signed-off-by: Johannes Löthberg --- theos/certs/matrix_kyriasis_com.sls | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'theos') 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: -- cgit v1.2.3-70-g09d2