From 3083e3bc63abe6d3e64eb22f5e3721f5481ac0a4 Mon Sep 17 00:00:00 2001 From: Josh Patterson Date: Thu, 3 Apr 2025 13:42:02 -0400 Subject: [PATCH] sync runners and create soqemussh user ssh keypair for manager and managerhype --- setup/so-setup | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index 6217511fc..5b8a14a01 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -753,8 +753,14 @@ if ! [[ -f $install_opt_file ]]; then logCmd "salt-call state.show_top" sleep 2 # Debug RSA Key format errors logCmd "salt-key -ya $MINION_ID" - logCmd "salt-call saltutil.sync_all" - + # we need to sync the runner and generate the soqemussh user keys so that first highstate after license created + # doesnt have a state failure for soqemussh_pub_key source for id_ed25519.pub missing + if [[ $is_manager || $is_managerhype ]]; then + logCmd "salt-run saltutil.sync_all" + logCmd "salt-run setup_hypervisor.regenerate_ssh_keys" + else + logCmd "salt-call saltutil.sync_all" + fi logCmd "salt-call state.apply common.packages" logCmd "salt-call state.apply common" # this will apply the salt.minion state first since salt.master includes salt.minion