瀏覽代碼

Use oscodename grain instead of hard coded trusty

susefix
Chris Sanders 8 年之前
父節點
當前提交
4900d96a29
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      nginx/ng/pkg.sls

+ 2
- 1
nginx/ng/pkg.sls 查看文件

@@ -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 %}

Loading…
取消
儲存