summaryrefslogtreecommitdiffstats
path: root/theos
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2019-01-02 22:41:03 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2019-01-02 22:41:03 +0100
commit6cd02c7a0b7af5939b9bd19c67fd0a022c34889a (patch)
treeed428f126942feedf29b6ef651be13ba6d041457 /theos
parentf1c51769b03e363be939a02eb9cd70191f1cdc3f (diff)
downloadfile-6cd02c7a0b7af5939b9bd19c67fd0a022c34889a.tar.xz
add prom cert
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'theos')
-rw-r--r--theos/certs/init.sls1
-rw-r--r--theos/certs/prometheus_kyriasis_com.sls16
2 files changed, 17 insertions, 0 deletions
diff --git a/theos/certs/init.sls b/theos/certs/init.sls
index 88cb7c6..9f42ff8 100644
--- a/theos/certs/init.sls
+++ b/theos/certs/init.sls
@@ -7,6 +7,7 @@ include:
- .taskd_kyriasis_com
- .miniflux_kyriasis_com
- .grafana_kyriasis_com
+ - .prometheus_kyriasis_com
- .remmy_io
/etc/letsencrypt/archive:
diff --git a/theos/certs/prometheus_kyriasis_com.sls b/theos/certs/prometheus_kyriasis_com.sls
new file mode 100644
index 0000000..d0076c3
--- /dev/null
+++ b/theos/certs/prometheus_kyriasis_com.sls
@@ -0,0 +1,16 @@
+include:
+ - nginx.ng
+
+prometheus.kyriasis.com:
+ acme.cert:
+ - email: johannes@kyriasis.com
+ - webroot: /srv/http/
+ - keysize: 4096
+ - renew: 30
+
+ - watch_in:
+ - service: nginx_service
+ - require_in:
+ - service: nginx_service
+
+# vim: set ft=yaml et: