salt/bin/nbroles_to_grains.sh
Georg Pfuetzenreuter 269b30ce9f
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Exclude libX11 removal for FPM hosts
Needed for some PHP extensions.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-04-30 19:48:36 +02:00

5 lines
291 B
Bash
Executable File

#!/usr/bin/env sh
# This rewrites top-files to fetch roles from grains instead of our custom roles API. Useful for testing outside of the LibertaCasa infrastructure, but not recommended for production.
sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls salt/common/suse.sls