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

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {%- from "salt/map.jinja" import salt_settings with context %}
  4. {%- if grains['os']|lower not in ['fedora'] %}
  5. salt-pkgrepo-install-saltstack-redhat:
  6. pkgrepo.managed:
  7. - name: {{ salt_settings.pkgrepo_name }}
  8. - humanname: {{ salt_settings.pkgrepo_humanname }}
  9. - baseurl: {{ salt_settings.pkgrepo }}
  10. - enabled: 1
  11. - gpgcheck: 1
  12. - gpgkey: {{ salt_settings.key_url }}
  13. {%- if grains['os']|lower in ['amazon'] %}
  14. - failovermethod: priority
  15. - priority: 10
  16. {%- endif %}
  17. {%- endif %}