puppet-nodepool/templates/secure.conf.erb
Yolanda Robla 9d943b6882 Add creation of secure.conf file
This will be a new file that will store all the secrets needed
by nodepool at this stage: mysql password, and jenkins masters
credentials.
Following there will be a patch in nodepool, to use that file
to retrieve mysql and jenkins settings. By this way,
nodepool.yaml can be a plain file, and not a template, and can
be created into project-config.

Change-Id: Ie9381740e3644feaee1f1b201499e3a253677f39
2015-07-30 16:28:28 +02:00

13 lines
347 B
Plaintext

[database]
dburi=mysql+pymysql://nodepool:<%= @mysql_password %>@localhost/nodepool
<% @jenkins_masters.each do |master| -%>
[jenkins "<%= master['name'] -%>"]
user=<%= master['user'] %>
apikey=<%= master['apikey'] %>
<% if master.has_key?('credentials') -%>
credentials=<%= master['credentials'] %>
<% end -%>
url=<%= master['url'] %>
<% end %>