Drop heat-localip.

We only needed heat-localip to work around a race condition in our
heat templates. Those templates are now fixed, so there is no need to
have heat-localip at all.

Change-Id: I779931e523d0082367c5602507eab10d190839c5
This commit is contained in:
Robert Collins 2013-08-15 16:11:27 +12:00
parent abc8b19c44
commit e411b0e228
4 changed files with 0 additions and 29 deletions

View File

@ -1,9 +0,0 @@
Update cfn-init-data with the instance local-ip.
This updates the cached metadata before os-config-applier is run by replacing
0.0.0.0 with the local-ipv4 value from the Nova metadata service.
Currently heat has no way to specify using the local-ip on first-run, rather it
waits for an update to the metadata by phoning home. By updating the metadata
before the first run of os-config-applier, we ensure the metadata is always
consistent.

View File

@ -1 +0,0 @@
os-refresh-config

View File

@ -1,4 +0,0 @@
#!/bin/bash
set -eux
install-packages wget

View File

@ -1,15 +0,0 @@
#!/bin/bash
set -eux
local_ip=`wget -O- http://169.254.169.254/2009-04-04/meta-data/local-ipv4 || true`
if [ -z "$local_ip" ]; then
echo "No Local IP found."
# Don't fail: not having access to the metadata server may be a post-boot
# configuration issue such as bridge late-bringup, or different default
# routes.
exit 0
fi
for f in /var/lib/heat-cfntools/cfn-init-data /var/cache/heat-cfntools/last_metadata ; do
if [ -e $f ] ; then
sed -i "s/\<0\.0\.0\.0\>/$local_ip/g" $f
fi
done