Skip to content

Commit

Permalink
fix: properly restart cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
faiq committed Sep 5, 2024
1 parent 2cbd9ad commit efc8257
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pkg/cloud/services/secretsmanager/secret_fetch_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ if [ ${GUNZIP_RETURN} -ne 0 ]; then
fi
log::info "restarting cloud-init"
systemctl restart cloud-init
cloud-init init --local
cloud-init init
cloud-init modules --mode=config
cloud-init modules --mode=final
log::success_exit
`
5 changes: 4 additions & 1 deletion pkg/cloud/services/ssm/secret_fetch_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ if [ ${GUNZIP_RETURN} -ne 0 ]; then
fi
log::info "restarting cloud-init"
systemctl restart cloud-init
cloud-init init --local
cloud-init init
cloud-init modules --mode=config
cloud-init modules --mode=final
log::success_exit
`

0 comments on commit efc8257

Please sign in to comment.