diff options
Diffstat (limited to 'mcp/config/states/maas')
-rwxr-xr-x | mcp/config/states/maas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mcp/config/states/maas b/mcp/config/states/maas index 52a9b7731..fecd991c1 100755 --- a/mcp/config/states/maas +++ b/mcp/config/states/maas @@ -69,6 +69,9 @@ while [ $rc -ne 0 ]; do sleep 5 done -salt -C '* and not cfg01* and not mas01*' saltutil.sync_all +wait_for "salt -C '* and not cfg01* and not mas01*' ssh.set_auth_key ${SUDO_USER} \ + $(awk 'NR==1{print $2}' $(eval echo ~${SUDO_USER}/.ssh/authorized_keys))" + +wait_for "salt -C '* and not cfg01* and not mas01*' saltutil.sync_all" salt -C '* and not cfg01* and not mas01*' state.apply salt wait_for "salt -C '* and not cfg01* and not mas01*' state.apply linux,ntp" |