blob: f111ae35c47a9392808e4965f34ee80136c98de2 [file] [log] [blame]
config:
{%- if pillar.jenkins.master is defined %}
{%- from "jenkins/map.jinja" import master with context %}
{%- if master.get('no_config', True) == False %}
config.xml:
path: {{ master.home }}/config.xml
source: "salt://jenkins/files/config.xml"
template: jinja
{%- if master.update_site_url is defined %}
hudson.model.UpdateCenter.xml:
path: {{ master.home }}/hudson.model.UpdateCenter.xml
source: "salt://jenkins/files/hudson.model.UpdateCenter.xml"
template: jinja
{%- endif %}
{%- if master.approved_scripts is defined %}
scriptApproval.xml:
path: {{ master.home }}/scriptApproval.xml
source: "salt://jenkins/files/scriptApproval.xml"
template: jinja
{%- endif %}
{%- if master.email is defined %}
hudson.tasks.Mailer.xml:
path: {{ master.home }}/hudson.tasks.Mailer.xml
source: "salt://jenkins/files/hudson.tasks.Mailer.xml"
template: jinja
{%- endif %}
{%- for user_name, user in master.get('user', {}).iteritems() %}
{{ user_name }}_config.yml:
path: {{ master.home }}/users/{{ user_name }}/config.xml
source: "salt://jenkins/files/config.xml.user"
template: jinja
defaults:
user_name: "{{ user_name }}"
{%- endfor %}
{%- endif %}
{%- endif %}
{#-
vim: syntax=jinja
-#}