Browse Source

Use oscodename grain instead of hard coded trusty

susefix
Chris Sanders 8 years ago
parent
commit
4900d96a29
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      nginx/ng/pkg.sls

+ 2
- 1
nginx/ng/pkg.sls View File

{% if salt['grains.get']('os') == 'Ubuntu' %} {% if salt['grains.get']('os') == 'Ubuntu' %}
- ppa: nginx/{{ nginx.ppa_version }} - ppa: nginx/{{ nginx.ppa_version }}
{% else %} {% else %}
- name: deb http://ppa.launchpad.net/nginx/{{ nginx.ppa_version }}/ubuntu trusty main
- name: deb http://ppa.launchpad.net/nginx/{{ nginx.ppa_version }}/ubuntu {{ grains['oscodename'] }} main
#- name: deb http://ppa.launchpad.net/nginx/{{ nginx.ppa_version }}/ubuntu trusty main
- keyid: C300EE8C - keyid: C300EE8C
- keyserver: keyserver.ubuntu.com - keyserver: keyserver.ubuntu.com
{% endif %} {% endif %}

Loading…
Cancel
Save