summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2019-08-17 12:22:00 +0200
committerJan Dittberner <jandd@cacert.org>2019-08-17 12:22:00 +0200
commit03f247609f730645ea952b354ec39be806df7d35 (patch)
tree512759b8ad45ae4530e3edfa3e88f3d29d58b87f /sitemodules/profiles/templates
parent07c74826ec8b1822ecb52c4b3a99c1f010fe8282 (diff)
downloadcacert-puppet-03f247609f730645ea952b354ec39be806df7d35.tar.gz
cacert-puppet-03f247609f730645ea952b354ec39be806df7d35.tar.xz
cacert-puppet-03f247609f730645ea952b354ec39be806df7d35.zip
Add configuration for selfservice API
Diffstat (limited to 'sitemodules/profiles/templates')
-rw-r--r--sitemodules/profiles/templates/cacert_selfservice_api/config.yaml.epp32
1 files changed, 32 insertions, 0 deletions
diff --git a/sitemodules/profiles/templates/cacert_selfservice_api/config.yaml.epp b/sitemodules/profiles/templates/cacert_selfservice_api/config.yaml.epp
new file mode 100644
index 0000000..b0552cf
--- /dev/null
+++ b/sitemodules/profiles/templates/cacert_selfservice_api/config.yaml.epp
@@ -0,0 +1,32 @@
+<%- | String $server_certificate,
+ String $server_key,
+ String $listen_address,
+ String $db_username,
+ String $db_password,
+ String $db_name,
+ String $notification_sender,
+ String $notification_recipient_address,
+ String $notification_recipient_name,
+ String $mail_host,
+ Integer $mail_port,
+ Array[Hash[String][String]] $clients,
+ String $log_directory
+| -%>
+---
+server_certificate: <%= $server_certificate %>
+server_key: <%= $server_key %>
+https_address: <%= $listen_address %>
+mysql_dsn: <%= $db_username %>:<%= $db_password %>@/<%= $db_name %>?parseTime=true
+access_log: <%= $log_directory %>/access.log
+notification_sender: <%= $notification_sender %>
+notification_recipient_address: <%= $notification_recipient_address %>
+notification_recipient_name: <%= $notification_recipient_name %>
+mail_server:
+ host: <%= $mail_host %>
+ port: <%= $mail_port %>
+clients:
+<%= $clients.each |$client| { -%>
+- id: <%= $client['client_id'] %>
+ key: |-
+<%= $client['key_lines'].each |$line| { %> <%= $line %><% } %>
+<% } -%>