Compare commits

..

No commits in common. "bfeeb8673ebb017f5b8fe3505663c8d450be53f0" and "c951f48b710a46f0a532757d5a06462fa27d6f7d" have entirely different histories.

View File

@ -1,14 +1,4 @@
#!/usr/bin/env sh #!/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. # 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.
potential_files=(*/top.sls salt/common/suse.sls) sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" */top.sls salt/common/suse.sls
for file in ${potential_files[@]}
do
if [ -f "$file" ]
then
files+="$file "
fi
done
sed -i "s/salt\['http.query'\].*/grains\['roles'\] -%}/" ${files[@]}