198cfb6f8d
Removes the deployed-server bootstrap resource from the deployed-server template as the equivalent functionality enabled by the scripts has been moved to the tripleo-bootstrap ansible role provided by tripleo-common. The environments and templates for the bootstrap resource are deprecated in train and will be removed in a future release. Change-Id: If5adc76190e986bae1346a3a7e8dda8a2bc92f27 Depends-On: Idc13a88481ae618f0321009f49acf71e68258b95 implements: blueprint reduce-deployment-resources
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
# DEPRECATED. This script is deprecated in train and will be removed in a
|
|
# future release. The functionality of the bootstrap scripts has been moved to
|
|
# the tripleo-bootstrap ansible role provided by tripleo-common.
|
|
#
|
|
#!/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
|