diff --git a/nginx/ng/install.sls b/nginx/ng/install.sls index 43a0839..99a84dd 100644 --- a/nginx/ng/install.sls +++ b/nginx/ng/install.sls @@ -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 %} diff --git a/pillar.example b/pillar.example index 60b8a51..beb765d 100644 --- a/pillar.example +++ b/pillar.example @@ -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