salt/bin/nbroles_to_grains.sh
Georg Pfuetzenreuter 0efd688151
All checks were successful
ci/lysergic/push/pipeline Pipeline was successful
Use http.query instead of nbroles module
This is an attempt to remove the need for the custom nbroles module. If
it works out, the localhost reference should be replaced with a global
roles API endpoint.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-01-22 16:32:57 +01:00

5 lines
270 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