Skip to content

Commit

Permalink
added cloud init clean (vmware#1371)
Browse files Browse the repository at this point in the history
Signed-off-by: ltimothy7 <66969084+ltimothy7@users.noreply.github.com>
  • Loading branch information
ltimothy7 authored Jul 15, 2022
1 parent 28745ed commit 117bfa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cluster_scripts/v2_x_tkgm/cloud_init_control_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ write_files:
echo "$(date) post customization script execution completed" &>> /var/log/cse/customization/status.log
exit 0
runcmd:
- 'cloud-init clean'
- '[ ! -f /root/kubeadm-defaults.conf ] && cloud-init clean && sudo reboot'
- '[ ! -f /root/vcloud-basic-auth.yaml ] && cloud-init clean && sudo reboot'
- '[ ! -f /root/control_plane.sh ] && cloud-init clean && sudo reboot'
Expand Down
1 change: 1 addition & 0 deletions cluster_scripts/v2_x_tkgm/cloud_init_node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ write_files:
exit 0
runcmd:
- 'cloud-init clean'
- '[ ! -f /root/kubeadm-defaults-join.conf ] && cloud-init clean && sudo reboot'
- '[ ! -f /root/node.sh ] && cloud-init clean && sudo reboot'
- bash /root/node.sh
Expand Down

0 comments on commit 117bfa8

Please sign in to comment.