summaryrefslogtreecommitdiffstats
path: root/bin/nbroles_to_grains.sh
blob: 85cb52c5c9ded530907cc50580b9653f52576842 (plain)
1
2
3
4
#!/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