2014-06-27 11:54:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-06-27 11:54:29 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
install-packages -e python-dev git cloud-init
|
|
|
|
rm -rf /tmp/ironic-python-agent
|
|
|
|
|
|
|
|
sudo systemctl disable iptables.service
|
|
|
|
|
|
|
|
#configs for additional interfaces
|
|
|
|
SYSCONFIG_PATH=/etc/sysconfig/network-scripts
|
|
|
|
for IFACE_NUM in 1 2
|
|
|
|
do
|
|
|
|
sudo cp $SYSCONFIG_PATH/ifcfg-eth0 $SYSCONFIG_PATH/ifcfg-eth$IFACE_NUM
|
|
|
|
sudo sed -i "s/eth0/eth$IFACE_NUM/g" $SYSCONFIG_PATH/ifcfg-eth$IFACE_NUM
|
|
|
|
done
|