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.

37 lines
1.2KB

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