blob: fd6a5c9ddc96db736b5c7e7e46e82b0e7a49c4dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/bash
yum install https://rdoproject.org/repos/openstack-ocata/rdo-release-ocata.rpm -y
yum install git ntp wget ntpdate openssh-server python-devel sudo '@Development Tools' -y
mkdir -p /opt/git/
cd /opt/git/
wget artifacts.opnfv.org/compass4nfv/package/openstack.tar.gz
tar -zxvf openstack.tar.gz
rm -rf openstack.tar.gz
cd openstack
git clone https://github.com/openstack/tacker.git -b stable/ocata
cd tacker
git checkout a0f1e680d81c7db66ae7a2a08c3d069901d0765a
git clone https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
cd /opt/openstack-ansible
git checkout 7beba50a8345616ef27c70cbbcac962b56b8adc5
/bin/cp -rf /opt/tacker_conf/ansible-role-requirements.yml /opt/openstack-ansible/
/bin/cp -rf /opt/tacker_conf/openstack_services.yml /opt/openstack-ansible/playbooks/defaults/repo_packages/
/bin/cp -rf /opt/tacker_conf/os-tacker-install.yml /opt/openstack-ansible/playbooks/
/bin/cp -rf /opt/tacker_conf/setup-openstack.yml /opt/openstack-ansible/playbooks/
/bin/cp -rf /opt/tacker_conf/tacker.yml /opt/openstack-ansible/playbooks/inventory/env.d/
/bin/cp -rf /opt/tacker_conf/tacker_all.yml /opt/openstack-ansible/playbooks/inventory/group_vars/
/bin/cp -rf /opt/tacker_conf/user_secrets.yml /opt/openstack-ansible/etc/openstack_deploy/
/bin/cp -rf /opt/tacker_conf/haproxy_config.yml /opt/openstack-ansible/playbooks/vars/configs/
/bin/cp -rf /opt/openstack-ansible/etc/openstack_deploy /etc/openstack_deploy
cd /opt/openstack-ansible
scripts/bootstrap-ansible.sh
rm -f /usr/local/bin/ansible-playbook
cd /opt/openstack-ansible/scripts/
python pw-token-gen.py --file /etc/openstack_deploy/user_secrets.yml
cd /opt/openstack-ansible/playbooks/inventory/group_vars
sed -i 's/#repo_build_git_cache/repo_build_git_cache/g' repo_all.yml
|