This commit is contained in:
Jonas Forsberg
2021-11-12 12:51:33 +01:00
parent 6fe1bd3e0c
commit 93a38129c0
3 changed files with 22 additions and 0 deletions

8
.functions/salt.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
function salt() {
if [[ "$1" == "state.apply" ]]; then
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@" pillar="{username: $USER}"
else·
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"
fi
}