Saltstack Official Salt Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
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