Pārlūkot izejas kodu

Merge pull request #84 from rbang1/master

Fix for incorrect pkg repo base url on Amazon Linux on EC2
susefix
Forrest pirms 9 gadiem
vecāks
revīzija
dcc47700da
3 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      nginx/ng/install.sls
  2. +1
    -0
      nginx/ng/map.jinja
  3. +2
    -0
      pillar.example

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

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

+ 1
- 0
nginx/ng/map.jinja Parādīt failu

@@ -25,6 +25,7 @@
'vhost_enabled': '/etc/nginx/conf.d',
'vhost_use_symlink': False,
'pid_file': '/var/run/nginx.pid',
'rh_os_releasever': '$releasever',
},
'Suse': {
'package': 'nginx',

+ 2
- 0
pillar.example Parādīt failu

@@ -35,6 +35,8 @@ 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
from_source: False

Notiek ielāde…
Atcelt
Saglabāt