salt-statetree/nginx/init.sls
2024-02-02 00:18:08 +01:00

17 lines
325 B
Text

{% from tpldir+"/map.jinja" import nginx with context %}
{% set profiles = salt.pillar.get("nginx:profiles", []) %}
nginx_pkg:
pkg.installed:
- pkgs:
- nginx
- certbot
- certbot-nginx
{% for profile in profiles %}
nginx_{{ profile }}_test:
cmd.run:
- name: echo "{{ profile }}"
{% endfor %}