test profiles
This commit is contained in:
parent
2c574ef2c5
commit
3fe9fa7886
1 changed files with 9 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
{% from tpldir+"/map.jinja" import nginx with context %}
|
{% from tpldir+"/map.jinja" import nginx with context %}
|
||||||
|
{% set profiles = salt.pillar.get("nginx:profiles", []) %}
|
||||||
|
|
||||||
nginx_pkg:
|
nginx_pkg:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -6,3 +7,11 @@ nginx_pkg:
|
||||||
- nginx
|
- nginx
|
||||||
- certbot
|
- certbot
|
||||||
- certbot-nginx
|
- certbot-nginx
|
||||||
|
|
||||||
|
{% for profile in profiles %}
|
||||||
|
|
||||||
|
nginx_{{ profile }}_test:
|
||||||
|
cmd.run:
|
||||||
|
- name: echo "{{ profile }}"
|
||||||
|
|
||||||
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue