test profiles

This commit is contained in:
LinuxSquare 2024-02-02 00:18:08 +01:00
parent 2c574ef2c5
commit 3fe9fa7886

View file

@ -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 %}