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:
parent
abc8b19c44
commit
e411b0e228
|
@ -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.
|
|
@ -1 +0,0 @@
|
|||
os-refresh-config
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
install-packages wget
|
|
@ -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
|
Loading…
Reference in New Issue