blob: 8578af9768a509684e0ca6bdd093cc83bffb8294 [file] [log] [blame]
{% from "jenkins/map.jinja" import client with context %}
{%- if client.enabled %}
include:
{%- if client.plugin is defined %}
- jenkins.client.plugin
{%- endif %}
{%- if client.security is defined %}
- jenkins.client.security
{%- endif %}
{%- if client.source is defined %}
- jenkins.client.source
{%- endif %}
{%- if client.job is defined %}
- jenkins.client.job
{%- endif %}
{%- if client.job_template is defined %}
- jenkins.client.job_template
{%- endif %}
{%- if client.credential is defined %}
- jenkins.client.credential
{%- endif %}
{%- if client.user is defined %}
- jenkins.client.user
{%- endif %}
{%- if client.node is defined %}
- jenkins.client.node
{%- endif %}
{%- if client.view is defined %}
- jenkins.client.view
{%- endif %}
{%- if client.smtp is defined %}
- jenkins.client.smtp
{%- endif %}
{%- if client.slack is defined %}
- jenkins.client.slack
{%- endif %}
{%- if client.lib is defined %}
- jenkins.client.lib
{%- endif %}
{%- if client.theme is defined %}
- jenkins.client.theme
{%- endif %}
{%- if client.approved_scripts is defined %}
- jenkins.client.approval
{%- endif %}
{%- if client.artifactory is defined %}
- jenkins.client.artifactory
{%- endif %}
jenkins_client_install:
pkg.installed:
- names: {{ client.pkgs }}
/etc/salt/minion.d/_jenkins.conf:
file.managed:
- source: salt://jenkins/files/_jenkins.conf
- template: jinja
jenkins_client_dirs:
file.directory:
- names:
- {{ client.dir.jenkins_source_root }}
- {{ client.dir.jenkins_jobs_root }}
- makedirs: true
{%- endif %}