diff options
author | Georg Pfuetzenreuter | 2023-01-22 16:32:57 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2023-01-22 16:32:57 +0100 |
commit | 0efd688151a3f93cda226e6bc86490a6f3110ba1 (patch) | |
tree | fd6e949d47575afa19ea3a5763b7f2b4de3f698f /bin/nbroles_to_grains.sh | |
parent | 06a36e62ae783600a98115258ab4a3c6095888d1 (diff) | |
download | salt-0efd688151a3f93cda226e6bc86490a6f3110ba1.tar.gz salt-0efd688151a3f93cda226e6bc86490a6f3110ba1.tar.bz2 salt-0efd688151a3f93cda226e6bc86490a6f3110ba1.zip |
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>
Diffstat (limited to 'bin/nbroles_to_grains.sh')
-rwxr-xr-x | bin/nbroles_to_grains.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nbroles_to_grains.sh b/bin/nbroles_to_grains.sh index 4d955fb..ee4e726 100755 --- a/bin/nbroles_to_grains.sh +++ b/bin/nbroles_to_grains.sh @@ -1,4 +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 +sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls |