|
|
|
|
|
|
|
|
- git.client |
|
|
- git.client |
|
|
- salt.master.service |
|
|
- salt.master.service |
|
|
|
|
|
|
|
|
{%- if master.windows_repo is defined %} |
|
|
|
|
|
|
|
|
|
|
|
/srv/salt/win: |
|
|
/srv/salt/win: |
|
|
file.directory: |
|
|
file.directory: |
|
|
- user: root |
|
|
- user: root |
|
|
- mode: 755 |
|
|
- mode: 755 |
|
|
- makedirs: true |
|
|
- makedirs: true |
|
|
- require: |
|
|
|
|
|
- file: /srv/salt/env |
|
|
|
|
|
|
|
|
|
|
|
{%- if master.windows_repo.source == 'git' %} |
|
|
|
|
|
|
|
|
{%- if master.win_repo.source == 'git' %} |
|
|
|
|
|
|
|
|
{{ master.windows_repo.address }}: |
|
|
|
|
|
|
|
|
{{ master.win_repo.address }}: |
|
|
git.latest: |
|
|
git.latest: |
|
|
- target: /srv/salt/win/repo |
|
|
- target: /srv/salt/win/repo |
|
|
- rev: {{ master.windows_repo.branch }} |
|
|
|
|
|
|
|
|
- rev: {{ master.win_repo.branch }} |
|
|
- require: |
|
|
- require: |
|
|
- file: /srv/salt/win |
|
|
- file: /srv/salt/win |
|
|
- pkg: git_packages |
|
|
- pkg: git_packages |
|
|
|
|
|
|
|
|
salt_master_update_win_repo: |
|
|
salt_master_update_win_repo: |
|
|
cmd.run: |
|
|
|
|
|
|
|
|
cmd.wait: |
|
|
- name: salt-run winrepo.genrepo |
|
|
- name: salt-run winrepo.genrepo |
|
|
- require: |
|
|
|
|
|
- git: {{ master.windows_repo.address }} |
|
|
|
|
|
|
|
|
|
|
|
{%- for environment in master.environments %} |
|
|
|
|
|
|
|
|
|
|
|
/srv/salt/env/{{ name }}/win: |
|
|
|
|
|
file.symlink: |
|
|
|
|
|
- target: /srv/salt/win |
|
|
|
|
|
- require: |
|
|
|
|
|
- file: /srv/salt/env/{{ name }} |
|
|
|
|
|
- git: {{ master.windows_repo.address }} |
|
|
|
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
- watch: |
|
|
|
|
|
- git: {{ master.win_repo.address }} |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
|