b993163ffb
On the new versions of RHEL, the network service isn't enabled by default because this mechanism became legacy. However, our os-net-config doesn't use the new network manager, so we still rely on on the network service to manage things like the virtual bridges on the Undercloud and the Overcloud. Closes-Bug: #1823353 Change-Id: I7094b36ef183dd388ea5a4c353f8eec43c9f2785
35 lines
903 B
Bash
Executable File
35 lines
903 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
yum install -y \
|
|
jq \
|
|
python-ipaddress \
|
|
puppet-tripleo \
|
|
os-net-config \
|
|
openvswitch \
|
|
python-heat-agent* \
|
|
openstack-selinux
|
|
|
|
ln -s -f /usr/share/openstack-puppet/modules/* /etc/puppet/modules
|
|
|
|
setenforce 0
|
|
sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
|
|
|
|
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/iptables
|
|
echo '# empty ruleset created by deployed-server bootstrap' > /etc/sysconfig/ip6tables
|
|
|
|
if [ ! -f /usr/bin/ansible-playbook ]; then
|
|
if [ -f /usr/bin/ansible-playbook-3 ]; then
|
|
ln -s -f /usr/bin/ansible-playbook-3 /usr/local/bin/ansible-playbook
|
|
fi
|
|
else
|
|
if [ ! -f /usr/bin/ansible-playbook-3 ]; then
|
|
ln -s -f /usr/bin/ansible-playbook /usr/local/bin/ansible-playbook-3
|
|
fi
|
|
fi
|
|
|
|
# https://launchpad.net/bugs/1823353
|
|
systemctl enable network
|
|
systemctl start network
|