Browse Source
Merge pull request #198 from aanriot/master
Allow installation of multiple packages
tags/v0.55.0
Niels Abspoel
6 years ago
No account linked to committer's email address
2 changed files with
8 additions and
1 deletions
-
nginx/ng/pkg.sls
-
pillar.example
|
|
@@ -24,7 +24,14 @@ |
|
|
|
nginx_install: |
|
|
|
pkg.installed: |
|
|
|
{{ 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 }} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if salt['grains.get']('os_family') == 'Debian' %} |
|
|
|
nginx_official_repo: |
|
|
@@ -44,7 +44,7 @@ nginx: |
|
|
|
# These are usually set by grains in map.jinja |
|
|
|
# Typically you can comment these out. |
|
|
|
lookup: |
|
|
|
package: nginx-custom |
|
|
|
package: nginx-custom (can be a list) |
|
|
|
service: nginx |
|
|
|
webuser: www-data |
|
|
|
conf_file: /etc/nginx/nginx.conf |