diff options
Diffstat (limited to 'bin/nbroles_to_grains.sh')
-rwxr-xr-x | bin/nbroles_to_grains.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/nbroles_to_grains.sh b/bin/nbroles_to_grains.sh new file mode 100755 index 0000000..4d955fb --- /dev/null +++ b/bin/nbroles_to_grains.sh @@ -0,0 +1,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\['nbroles.get'\](id)/grains\['roles'\]/" */top.sls |