puppet-zuul/templates/zuul.conf.erb

125 lines
2.9 KiB
Plaintext

[gearman]
server=<%= @gearman_server %>
check_job_registration=<%= @gearman_check_job_registration %>
[gearman_server]
start=<%= @internal_gearman %>
log_config=/etc/zuul/gearman-logging.conf
<% if @statsd_host != "" %>
[statsd]
server=<%= @statsd_host %>
<% end %>
<% if @gerrit_server != "" -%>
[gerrit]
server=<%= @gerrit_server %>
user=<%= @gerrit_user %>
sshkey=/var/lib/zuul/ssh/id_rsa
<% if @gerrit_baseurl != "" -%>
baseurl=<%= @gerrit_baseurl %>
<% end -%>
<% if @gerrit_strip_branch_ref != "" -%>
strip_branch_ref=<%= @gerrit_strip_branch_ref %>
<% end -%>
<% end -%>
[zuul]
layout_config=/etc/zuul/layout/<%= @layout_file_name %>
log_config=/etc/zuul/logging.conf
state_dir=/var/lib/zuul
url_pattern=<%= @url_pattern %>
status_url=<%= @status_url %>
job_name_in_report=<%= @job_name_in_report %>
[merger]
git_dir=/var/lib/zuul/git
zuul_url=<%= @zuul_url %>
log_config=/etc/zuul/merger-logging.conf
<% if @git_email != "" -%>
git_user_email=<%= @git_email %>
<% end -%>
<% if @git_name != "" -%>
git_user_name=<%= @git_name %>
<% end -%>
<% if @swift_authurl != "" -%>
[swift]
<% if @swift_account_temp_key != "" -%>
X-Account-Meta-Temp-Url-Key=<%= @swift_account_temp_key %>
<% end -%>
authurl=<%= @swift_authurl %>
user=<%= @swift_user %>
key=<%= @swift_key %>
tenant_name=<%= @swift_tenant_name %>
region_name=<%= @swift_region_name %>
default_container=<%= @swift_default_container %>
default_logserver_prefix=<%= @swift_default_logserver_prefix %>
default_expiry=<%= @swift_default_expiry %>
<% if @swift_auth_version != "" -%>
auth_version=<%= @swift_auth_version %>
<% end -%>
<% end -%>
<% if @smtp_host != "" -%>
[smtp]
server=<%= @smtp_host %>
port=<%= @smtp_port %>
default_from=<%= @smtp_default_from %>
default_to=<%= @smtp_default_to %>
<% end -%>
<% if @jenkins_jobs != "" -%>
[launcher]
log_config=/etc/zuul/launcher-logging.conf
jenkins_jobs=<%= @jenkins_jobs %>
workspace_root=<%= @workspace_root %>
<% if @worker_private_key_file != "" -%>
private_key_file=<%= @worker_private_key_file %>
<% end -%>
<% if @worker_username != "" -%>
username=<%= @worker_username %>
<% end -%>
<% if @accept_nodes != "" -%>
accept_nodes=<%= @accept_nodes %>
<% end -%>
<% end -%>
<% @connections.each do |connection| -%>
[connection "<%= connection['name'] %>"]
<% connection.each do |key,value| -%>
<%= key %>=<%= value %>
<% end -%>
<% end -%>
<% @sites.each do |site| -%>
[site "<%= site['name'] %>"]
host=<%= site['host'] %>
<% if site['user'] != "" -%>
user=<%= site['user'] %>
<% end -%>
<% if site['pass'] != "" -%>
pass=<%= site['pass'] %>
<% end -%>
<% if site['root'] != "" -%>
root=<%= site['root'] %>
<% end -%>
<% if site['keytab'] != "" -%>
keytab=<%= site['keytab'] %>
<% end -%>
<% end -%>
<% @nodes.each do |node| -%>
[node "<%= node['name'] %>"]
host=<%= node['host'] %>
<% if node['description'] != "" -%>
description=<%= node['description'] %>
<% end -%>
<% if node['labels'] != "" -%>
labels=<%= node['labels'] %>
<% end -%>
<% end -%>