Skip to content

Commit

Permalink
move updating the route to later in the setup process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Space committed Apr 16, 2015
1 parent 0d34552 commit 1b10d5f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions infrastructure/aws/bastion/aws/template.cfn
Expand Up @@ -188,15 +188,6 @@
"# Attach public network interface\n",
"aws ec2 attach-network-interface --region \"$REGION_ID\" --instance-id \"$INSTANCE_ID\" --network-interface-id \"$PUBLIC_NETWORK_INTERFACE_ID\" --device-index=1\n",
"\n",
"# Remove default route to private subnet\n",
"route del default dev eth0\n",
"\n",
"# restart ntpd to listen on 2nd interface\n",
"if [ -e /etc/ntp.conf ]; then\n",
" echo \"interface listen eth1\" >> /etc/ntp.conf\n",
" service ntpd restart\n",
"fi\n",
"\n",
"yum -y update\n",
"yum -y install git-core\n",
"\n",
Expand All @@ -208,6 +199,15 @@
"# Run Chef\n",
"environment=$ENVIRONMENT chef-solo -c \"$REPO_DIR/$BASTION_PATH/chef/solo.rb\" -j \"$REPO_DIR/$BASTION_PATH/chef/solo.json\"\n",
"\n",
"# Remove default route to private subnet\n",
"route del default dev eth0\n",
"\n",
"# restart ntpd to listen on 2nd interface\n",
"if [ -e /etc/ntp.conf ]; then\n",
" echo \"interface listen eth1\" >> /etc/ntp.conf\n",
" service ntpd restart\n",
"fi\n",
"\n",
"# Notify wait handle\n",
"WAIT_HANDLE_JSON=\"{\\\"Status\\\": \\\"SUCCESS\\\", \\\"Reason\\\": \\\"Done\\\", \\\"UniqueId\\\": \\\"1\\\", \\\"Data\\\": \\\"$INSTANCE_ID\\\"}\"\n",
"curl -X PUT -H 'Content-Type:' --data-binary \"$WAIT_HANDLE_JSON\" \"$INSTANCE_WAIT_HANDLE_URL\"\n",
Expand Down

0 comments on commit 1b10d5f

Please sign in to comment.