-
-
Save whytewolf/d445bb08004e407d1ba5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for location in salt.pillar.get('salt2:locations') %} | |
salt_mirror: | |
file.managed: | |
- name: /srv/salt/mirror_{{ location }}.conf | |
- source: salt://saltstack/files/myfile.conf.j2 | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 0600 | |
- master: {{ salt.pillar.get('salt2:locations:'~ location,'ftp.debian.org') }} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt2: | |
locations: | |
us: ftp.us.debian.org | |
uk: ftp.uk.debian.org | |
ua: ftp.ua.debian.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
salt_mirror: | |
file.managed: | |
- name: /srv/salt/mirror_ua.conf | |
- source: salt://saltstack/files/myfile.conf.j2 | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 0600 | |
- master: ftp.ua.debian.org | |
salt_mirror: | |
file.managed: | |
- name: /srv/salt/mirror_uk.conf | |
- source: salt://saltstack/files/myfile.conf.j2 | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 0600 | |
- master: ftp.uk.debian.org | |
salt_mirror: | |
file.managed: | |
- name: /srv/salt/mirror_us.conf | |
- source: salt://saltstack/files/myfile.conf.j2 | |
- template: jinja | |
- user: root | |
- group: root | |
- mode: 0600 | |
- master: ftp.us.debian.org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment