0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-12-01 04:11:17 +01:00
salt-formula/salt/pkgrepo/redhat/install.sls
2019-09-19 01:57:12 +01:00

19 lines
554 B
Plaintext

# -*- coding: utf-8 -*-
# vim: ft=sls
{%- from "salt/map.jinja" import salt_settings with context %}
{%- if grains['os']|lower not in ['fedora'] %}
salt-pkgrepo-install-saltstack-redhat:
pkgrepo.managed:
- name: {{ salt_settings.pkgrepo_name }}
- humanname: {{ salt_settings.pkgrepo_humanname }}
- baseurl: {{ salt_settings.pkgrepo }}
- enabled: 1
- gpgcheck: 1
- gpgkey: {{ salt_settings.key_url }}
{%- if grains['os']|lower in ['amazon'] %}
- failovermethod: priority
- priority: 10
{%- endif %}
{%- endif %}