puppet-zuul/templates/zuulv3.conf.erb

110 lines
2.8 KiB
Plaintext

[gearman]
server=<%= @gearman_server %>
check_job_registration=<%= @gearman_check_job_registration %>
<% if @gearman_ssl_ca != nil -%>
ssl_ca=/etc/zuul/ssl/ca.pem
<% end -%>
<% if @gearman_client_ssl_cert != nil -%>
ssl_cert=/etc/zuul/ssl/client.pem
<% end -%>
<% if @gearman_client_ssl_key != nil -%>
ssl_key=/etc/zuul/ssl/client.key
<% end -%>
[gearman_server]
start=<%= @internal_gearman %>
log_config=/etc/zuul/gearman-logging.conf
<% if @gearman_ssl_ca != nil -%>
ssl_ca=/etc/zuul/ssl/ca.pem
<% end -%>
<% if @gearman_server_ssl_cert != nil -%>
ssl_cert=/etc/zuul/ssl/server.pem
<% end -%>
<% if @gearman_server_ssl_key != nil -%>
ssl_key=/etc/zuul/ssl/server.key
<% end -%>
[scheduler]
tenant_config=/etc/zuul/layout/<%= @tenant_file_name %>
log_config=/etc/zuul/logging.conf
state_dir=/var/lib/zuul
relative_priority=<%= @relative_priority %>
[fingergw]
user=zuul
[zookeeper]
hosts=<%= @zookeeper_hosts %>
<% if @zookeeper_session_timeout != nil -%>
session_timeout=<%= @zookeeper_session_timeout %>
<% end -%>
<% if @statsd_host != "" %>
[statsd]
server=<%= @statsd_host %>
<% end %>
[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 -%>
[executor]
manage_ansible=false
log_config=/etc/zuul/executor-logging.conf
job_dir=/var/lib/zuul/builds
<% if @site_variables_yaml_file != nil -%>
variables=/etc/zuul/site-variables.yaml
<% end -%>
<% if @worker_private_key_file != "" -%>
private_key_file=<%= @worker_private_key_file %>
<% end -%>
trusted_ro_dirs=<%= @trusted_ro_dirs.join(':') %>
trusted_rw_dirs=<%= @trusted_rw_dirs.join(':') %>
untrusted_ro_dirs=<%= @untrusted_ro_dirs.join(':') %>
untrusted_rw_dirs=<%= @untrusted_rw_dirs.join(':') %>
trusted_ro_paths=<%= @trusted_ro_paths.join(':') %>
trusted_rw_paths=<%= @trusted_rw_paths.join(':') %>
untrusted_ro_paths=<%= @untrusted_ro_paths.join(':') %>
untrusted_rw_paths=<%= @untrusted_rw_paths.join(':') %>
<% if @disk_limit_per_job != "" -%>
disk_limit_per_job=<%= @disk_limit_per_job %>
<% end -%>
[web]
log_config=/etc/zuul/web-logging.conf
static_path=/opt/zuul-web/content
<% if @web_listen_address != "" -%>
listen_address=<%= @web_listen_address %>
<% end -%>
<% if @web_listen_port != "" -%>
listen_port=<%= @web_listen_port %>
<% end -%>
status_url=<%= @status_url %>
<% if @web_root != "" -%>
root=<%= web_root %>
<% end -%>
<% @connections.each do |connection| -%>
[connection "<%= connection['name'] %>"]
<% connection.each do |key,value| -%>
<%= key %>=<%= value %>
<% end -%>
<% @connection_secrets.each do |connection_secret| -%>
<% if connection_secret['name'] == connection['name'] -%>
<% connection_secret.each do |key,value| -%>
<% if key != 'name' -%>
<%= key %>=<%= value %>
<% end -%>
<% end -%>
<% end -%>
<% end -%>
<% end -%>