瀏覽代碼

Merge pull request #112 from bogdanr/master

Support installing the packages from the official repo on Debian
susefix
Forrest 8 年之前
父節點
當前提交
dc1e102d57
共有 1 個檔案被更改,包括 15 行新增0 行删除
  1. +15
    -0
      nginx/ng/install.sls

+ 15
- 0
nginx/ng/install.sls 查看文件

@@ -14,6 +14,20 @@ nginx_install:
{% endif %}

{% if salt['grains.get']('os_family') == 'Debian' %}
{%- if nginx.install_from_repo %}
nginx-official-repo:
pkgrepo:
- managed
- humanname: nginx apt repo
- name: deb http://nginx.org/packages/{{ grains['os'].lower() }}/ {{ grains['oscodename'] }} nginx
- file: /etc/apt/sources.list.d/nginx-official-{{ grains['oscodename'] }}.list
- keyid: ABF5BD827BD9BF62
- keyserver: keyserver.ubuntu.com
- require_in:
- pkg: nginx
- watch_in:
- pkg: nginx
{%- else %}
nginx_ppa_repo:
pkgrepo:
{%- if nginx.install_from_ppa %}
@@ -26,6 +40,7 @@ nginx_ppa_repo:
- pkg: nginx_install
- watch_in:
- pkg: nginx_install
{%- endif %}
{% endif %}

{% if salt['grains.get']('os_family') == 'Suse' %}

Loading…
取消
儲存