Bläddra i källkod

* added comment for pillar example

* removed override releasever variable use for CentOS
susefix
Roshan Bangera 9 år sedan
förälder
incheckning
03c4902b9e
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. +1
    -1
      nginx/ng/install.sls
  2. +1
    -0
      pillar.example

+ 1
- 1
nginx/ng/install.sls Visa fil

@@ -55,7 +55,7 @@ nginx_yum_repo:
- name: nginx
- humanname: nginx repo
{%- if salt['grains.get']('os') == 'CentOS' %}
- baseurl: 'http://nginx.org/packages/centos/{{ nginx.lookup.rh_os_releasever }}/$basearch/'
- baseurl: 'http://nginx.org/packages/centos/$releasever/$basearch/'
{%- else %}
- baseurl: 'http://nginx.org/packages/rhel/{{ nginx.lookup.rh_os_releasever }}/$basearch/'
{%- endif %}

+ 1
- 0
pillar.example Visa fil

@@ -35,6 +35,7 @@ nginx:
vhost_available: /etc/nginx/sites-available
vhost_enabled: /etc/nginx/sites-enabled
vhost_use_symlink: True
# This is required for RedHat like distros (Amazon Linux) that don't follow semantic versioning for $releasever
rh_os_releasever: '6'

# Source compilation is not currently a part of nginx.ng

Laddar…
Avbryt
Spara