Pārlūkot izejas kodu

Merge pull request #83 from zajk/master

Add nginx repo for RedHat family
susefix
Nitin Madhok pirms 9 gadiem
vecāks
revīzija
5db89309ed
1 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  1. +18
    -0
      nginx/ng/install.sls

+ 18
- 0
nginx/ng/install.sls Parādīt failu

@@ -48,3 +48,21 @@ nginx_zypp_repo:
- watch_in:
- pkg: nginx_install
{% endif %}

{% if salt['grains.get']('os_family') == 'RedHat' %}
nginx_yum_repo:
pkgrepo.managed:
- name: nginx
- humanname: nginx repo
{%- if salt['grains.get']('os') == 'CentOS' %}
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
{%- else %}
- baseurl: 'http://nginx.org/packages/rhel/$releasever/$basearch/'
{%- endif %}
- gpgcheck: False
- enabled: True
- require_in:
- pkg: nginx_install
- watch_in:
- pkg: nginx_install
{% endif %}

Notiek ielāde…
Atcelt
Saglabāt