|
|
|
|
|
|
|
|
nginx_install: |
|
|
nginx_install: |
|
|
pkg.installed: |
|
|
pkg.installed: |
|
|
{{ sls_block(nginx.package.opts) }} |
|
|
{{ sls_block(nginx.package.opts) }} |
|
|
|
|
|
{% if nginx.lookup.package is iterable and nginx.lookup.package is not string %} |
|
|
|
|
|
- pkgs: |
|
|
|
|
|
{% for pkg in nginx.lookup.package %} |
|
|
|
|
|
- {{ pkg }} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
{% else %} |
|
|
- name: {{ nginx.lookup.package }} |
|
|
- name: {{ nginx.lookup.package }} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
{% if salt['grains.get']('os_family') == 'Debian' %} |
|
|
{% if salt['grains.get']('os_family') == 'Debian' %} |
|
|
nginx_official_repo: |
|
|
nginx_official_repo: |