Saltstack Official Salt Formula
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.

31 lines
1.0KB

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {% from "salt/map.jinja" import salt_settings with context %}
  4. salt-pkgrepo-install-saltstack-debian-keyring:
  5. file.managed:
  6. - name: /usr/share/keyrings/salt-archive-keyring.gpg
  7. - source: {{ salt_settings.pkgrepo_keyring }}
  8. - source_hash: {{ salt_settings.pkgrepo_keyring_hash }}
  9. - require_in:
  10. - pkgrepo: salt-pkgrepo-install-saltstack-debian
  11. salt-pkgrepo-install-saltstack-debian-remove-old-repo-file:
  12. file.absent:
  13. - name: /etc/apt/sources.list.d/saltstack.list
  14. - require_in:
  15. - pkgrepo: salt-pkgrepo-install-saltstack-debian
  16. salt-pkgrepo-install-saltstack-debian:
  17. pkgrepo.managed:
  18. - humanname: SaltStack Debian Repo
  19. - name: {{ salt_settings.pkgrepo }}
  20. - file: /etc/apt/sources.list.d/salt.list
  21. {% if salt_settings.get('key_url') is not none %}
  22. - key_url: {{ salt_settings.key_url }}
  23. {% endif %}
  24. - clean_file: True
  25. # Order: 3 because we can't put a require_in on "pkg: salt-{master,minion}"
  26. # because we don't know if they are used.
  27. - order: 3