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.

29 lines
995B

  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. - key_url: {{ salt_settings.key_url }}
  22. - clean_file: True
  23. # Order: 3 because we can't put a require_in on "pkg: salt-{master,minion}"
  24. # because we don't know if they are used.
  25. - order: 3