Skip to content

Commit

Permalink
Separate cloud init into two phases
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Mar 18, 2015
1 parent f21e7e1 commit 783e553
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dockerimages/scripts/cloud-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ fi

rancherctl config get cloud_init

cloud-init -save
cloud-init -save -network ${CLOUD_INIT_NETWORK:-true}
5 changes: 5 additions & 0 deletions scripts/dockerimages/scripts/console.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ fi

cloud-init -execute

if [ -x /var/lib/rancher/conf/cloud-config-script ]; then
echo "Running /var/lib/rancher/conf/cloud-config-script"
/var/lib/rancher/conf/cloud-config-script || true
fi

setup_ssh

cat > /etc/respawn.conf << EOF
Expand Down

0 comments on commit 783e553

Please sign in to comment.