7d3c7b16bb
In RHEL8, we'll have /usr/bin/ansible-playbook provided by ansible package. Everywhere in TripleO we rely on /usr/bin/ansible-playbook but the ansible-python3 package in Fedora 28 doesn't provide it. Until it does, we have a temporary workaround that will create a symlink only if the file doesn't exist and if ansible-playbook3 is here. Change-Id: I520bf0d665fa9a331fe94168595d3b09dbf1795c Related-Bug: #1812837
31 lines
816 B
Bash
Executable File
31 lines
816 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
|