|
|
|
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if salt['grains.get']('os_family') == 'Debian' %} |
|
|
{% 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: |
|
|
nginx_ppa_repo: |
|
|
pkgrepo: |
|
|
pkgrepo: |
|
|
{%- if nginx.install_from_ppa %} |
|
|
{%- if nginx.install_from_ppa %} |
|
|
|
|
|
|
|
|
- pkg: nginx_install |
|
|
- pkg: nginx_install |
|
|
- watch_in: |
|
|
- watch_in: |
|
|
- pkg: nginx_install |
|
|
- pkg: nginx_install |
|
|
|
|
|
{%- endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if salt['grains.get']('os_family') == 'Suse' %} |
|
|
{% if salt['grains.get']('os_family') == 'Suse' %} |