Saltstack Official Salt Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

install.sls 995B

12345678910111213141516171819202122232425262728
  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