New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
608B

  1. {%- from "salt/map.jinja" import master with context %}
  2. {%- if master.enabled %}
  3. include:
  4. - git.client
  5. - salt.master.service
  6. /srv/salt/win:
  7. file.directory:
  8. - user: root
  9. - mode: 755
  10. - makedirs: true
  11. {%- if master.win_repo.source == 'git' %}
  12. {{ master.win_repo.address }}:
  13. git.latest:
  14. - target: /srv/salt/win/repo-ng
  15. - rev: {{ master.win_repo.get('revision', 'master') }}
  16. - require:
  17. - file: /srv/salt/win
  18. - pkg: git_packages
  19. salt_master_update_win_repo:
  20. cmd.wait:
  21. - name: salt-run winrepo.genrepo
  22. - watch:
  23. - git: {{ master.win_repo.address }}
  24. {%- endif %}
  25. {%- endif %}