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.

20 lines
580B

  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. - priority: 10
  11. - enabled: 1
  12. - enabled_metadata: 1
  13. - gpgcheck: 1
  14. - gpgkey: {{ salt_settings.key_url }}
  15. {%- if grains['os']|lower in ['amazon'] %}
  16. - failovermethod: priority
  17. {%- endif %}
  18. {%- endif %}