Use oscodename grain instead of hard coded trusty

This commit is contained in:
Chris Sanders 2016-10-17 11:36:29 -05:00
parent ef8fb87105
commit 4900d96a29

View File

@ -34,7 +34,8 @@ nginx_ppa_repo:
{% if salt['grains.get']('os') == 'Ubuntu' %}
- ppa: nginx/{{ nginx.ppa_version }}
{% 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
- keyserver: keyserver.ubuntu.com
{% endif %}