瀏覽代碼

Add nginx repo for RedHat family

susefix
Zijad Purkovic 9 年之前
父節點
當前提交
7f95a5a9db
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. +18
    -0
      nginx/ng/install.sls

+ 18
- 0
nginx/ng/install.sls 查看文件

@@ -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 %}

Loading…
取消
儲存