From 3fe9fa78862ca824fbf93e6942a6119dca766483 Mon Sep 17 00:00:00 2001 From: LinuxSquare Date: Fri, 2 Feb 2024 00:18:08 +0100 Subject: [PATCH] test profiles --- nginx/init.sls | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nginx/init.sls b/nginx/init.sls index e644f3d..9049309 100644 --- a/nginx/init.sls +++ b/nginx/init.sls @@ -1,4 +1,5 @@ {% from tpldir+"/map.jinja" import nginx with context %} +{% set profiles = salt.pillar.get("nginx:profiles", []) %} nginx_pkg: pkg.installed: @@ -6,3 +7,11 @@ nginx_pkg: - nginx - certbot - certbot-nginx + +{% for profile in profiles %} + +nginx_{{ profile }}_test: + cmd.run: + - name: echo "{{ profile }}" + +{% endfor %}