e168952b1f80ce29e6223e6e864f0864b3543194
[cacert-puppet.git] / sitemodules / profiles / templates / cacert_selfservice_api / config.yaml.epp
1 <%- | String $server_certificate,
2 String $server_key,
3 String $listen_address,
4 String $db_username,
5 String $db_password,
6 String $db_name,
7 String $notification_sender,
8 String $notification_recipient_address,
9 String $notification_recipient_name,
10 String $mail_host,
11 Integer $mail_port,
12 Array[Hash[String, Data]] $clients,
13 String $log_directory
14 | -%>
15 ---
16 server_certificate: <%= $server_certificate %>
17 server_key: <%= $server_key %>
18 https_address: <%= $listen_address %>
19 mysql_dsn: <%= $db_username %>:<%= $db_password %>@/<%= $db_name %>?parseTime=true
20 access_log: <%= $log_directory %>/access.log
21 notification_sender: <%= $notification_sender %>
22 notification_recipient_address: <%= $notification_recipient_address %>
23 notification_recipient_name: <%= $notification_recipient_name %>
24 mail_server:
25 host: <%= $mail_host %>
26 port: <%= $mail_port %>
27 clients:
28 <% $clients.each |$client| { -%>
29 - id: <%= $client['client_id'] %>
30 key: |-
31 <% $client['key_lines'].each |$line| { %> <%= $line %>
32 <% } -%>
33 <% } -%>