summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-02 20:19:14 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-02 21:11:01 +0200
commitf69a10d21a05d2857a7335ebf14562c99d3814a4 (patch)
treec32eb31359d46700ab79684423569daab19787b9 /sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp
parenta62daa7235acef7d6a8d7a71a8e378b357a044fe (diff)
downloadcacert-puppet-f69a10d21a05d2857a7335ebf14562c99d3814a4.tar.gz
cacert-puppet-f69a10d21a05d2857a7335ebf14562c99d3814a4.tar.xz
cacert-puppet-f69a10d21a05d2857a7335ebf14562c99d3814a4.zip
Setup cacert-boardvoting configuration on motion
- write config file - add certificate and private key for TLS - add trusted certificate - start cacert-boardvoting service
Diffstat (limited to 'sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp')
-rw-r--r--sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp24
1 files changed, 24 insertions, 0 deletions
diff --git a/sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp b/sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp
new file mode 100644
index 0000000..653edb6
--- /dev/null
+++ b/sitemodules/profiles/templates/cacert_boardvoting/config.yaml.epp
@@ -0,0 +1,24 @@
+<%- | String $base_url,
+ String $cookie_secret,
+ String $csrf_key,
+ String $mail_host,
+ Integer $mail_port,
+ String $motion_address,
+ String $sender_address,
+ String $vote_address
+| -%>
+---
+notice_mail_address: <%= $motion_address %>
+vote_notice_mail_address: <%= $vote_address %>
+notification_sender_address: <%= $sender_address %>
+database_file: /srv/cacert-boardvoting/data/database.sqlite
+client_ca_certificates: /srv/cacert-boardvoting/data/cacert_class3.pem
+server_certificate: /srv/cacert-boardvoting/data/server.crt
+server_key: /srv/cacert-boardvoting/data/server.key
+https_address: <%= $facts[networking][ip] %>:8443
+cookie_secret: <%= $cookie_secret %>
+csrf_key: <%= $csrf_key %>
+base_url: <%= $base_url %>
+mail_server:
+ host: <%= $mail_host %>
+ port: <%= $mail_port %>