Remove heat_docker_agent/run-os-net-config
This won't be required if the following change lands Change-Id: Ib3457f3b6598b989d1f3501d450ee10b87042dba Depends-On: I763fc8d8e3eb10ac64d33e46c92888d211003e72
This commit is contained in:
parent
d0033ddaf6
commit
b170a6772d
@ -13,14 +13,6 @@ ADD 50-heat-config-docker-cmd /usr/libexec/os-refresh-config/configure.d/50-heat
|
||||
ADD configure_container.sh /tmp/
|
||||
RUN /tmp/configure_container.sh && rm /tmp/configure_container.sh
|
||||
|
||||
# This is a script which:
|
||||
# - Copies the existing network interface configs from the host to the agent.
|
||||
# - Configures os-net-config
|
||||
# - Runs os-net-config in the agent.
|
||||
#
|
||||
# All of this is triggered from the heat templates.
|
||||
ADD run-os-net-config /usr/local/bin/
|
||||
|
||||
# create volumes to share the host directories
|
||||
VOLUME [ "/var/lib/cloud"]
|
||||
VOLUME [ "/var/lib/heat-cfntools" ]
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
# Be sure to copy existing interface configs from the host so that we can properly
|
||||
# ifdown them before bringing up new config.
|
||||
cp /host/etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/network-scripts/
|
||||
|
||||
NET_CONFIG=$(os-apply-config --key os_net_config --type raw --key-default '')
|
||||
|
||||
if [ -n "$NET_CONFIG" ]; then
|
||||
os-net-config -c /etc/os-net-config/config.json -v
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user