Skip to content

Commit

Permalink
bootstrap: sync __utils__, sync everything after minion key accept
Browse files Browse the repository at this point in the history
Issue: #1018
  • Loading branch information
jbertran committed Jun 26, 2019
1 parent 99fbe60 commit 58381d3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/bootstrap.sh.in
Expand Up @@ -269,6 +269,10 @@ orchestrate_bootstrap() {

SALT_MASTER_CALL=(crictl exec -i "$(get_salt_container)")

run "Syncing Utility modules on Salt master" \
"${SALT_MASTER_CALL[@]}" salt-run --state-output=mixed saltutil.sync_utils \
saltenv=metalk8s-@@VERSION

run "Syncing Pillar modules on Salt master" \
"${SALT_MASTER_CALL[@]}" salt-run --state-output=mixed saltutil.sync_pillar \
saltenv=metalk8s-@@VERSION
Expand Down Expand Up @@ -296,6 +300,11 @@ orchestrate_bootstrap() {
saltenv=metalk8s-@@VERSION \
pillar="${pillar[*]}"

run "Refreshing all modules and data on bootstrap minion" \
salt-call --state-output=mixed saltutil.sync_all \
refresh=True \
saltenv=metalk8s-@@VERSION

run "Deploying bootstrap node (this may take a while)" \
"${SALT_MASTER_CALL[@]}" salt-run --state-output=mixed state.orchestrate \
metalk8s.orchestrate.bootstrap \
Expand Down

0 comments on commit 58381d3

Please sign in to comment.