4f8d5d0439
Now that we use dnf mark, it's no longer needed. Change-Id: I0ed8176f7ab5122fbddd37e3ce1584091f0a3cc2
30 lines
608 B
Bash
Executable file
30 lines
608 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
install-packages -e python-dev git cloud-init
|
|
|
|
rm -rf /tmp/ironic-python-agent
|
|
|
|
case "$DIB_INIT_SYSTEM" in
|
|
upstart)
|
|
if [ -f /etc/init/ufw.conf ]; then
|
|
mv /etc/init/ufw.conf /etc/init/ufw.conf.disabled
|
|
fi
|
|
;;
|
|
systemd)
|
|
systemctl disable iptables.service
|
|
systemctl enable $(svc-map ironic-python-agent).service
|
|
;;
|
|
sysv)
|
|
update-rc.d iptables disable
|
|
;;
|
|
*)
|
|
echo "Unsupported init system"
|
|
exit 1
|
|
;;
|
|
esac
|