salt/bin/nbroles_to_grains.sh

5 lines
269 B
Bash
Raw Normal View History

#!/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