-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·67 lines (39 loc) · 1.58 KB
/
install.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
#OpenStack installation script with packstack installer for CentOS7.
echo -e "\n Installation will take around 30 min."
sleep 3s
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
export USR=${USER}
echo -e "Root "
sudo echo "$USR ALL=(ALL) ALL" | sudo EDITOR='tee -a' visudo
sudo yum update -y
sudo usermod -aG wheel $USER
sudo sed -i -e 's/enforcing/disabled/g' /etc/selinux/config
sudo yum install python-pip
sudo yum install python-setuptools
sudo yum upgrade
sudo yum install yum-utils
sudo yum install qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils
sudo systemctl start libvirtd
sudo systemctl enable libvirtd
sudo yum install python-openstackclient
sudo yum install openstack-selinux
sudo systemctl disable firewalld
sleep 1s
sudo systemctl stop firewalld
sleep 1s
sudo systemctl disable NetworkManager
sleep 1s
sudo systemctl stop NetworkManager
sleep 1s
sudo systemctl enable network
sleep 1s
sudo systemctl start network
sleep 1s
sudo yum install -y https://rdoproject.org/repos/rdo-release.rpm
sudo yum install -y centos-release-openstack-queens
yum-config-manager --enable openstack-queens
sudo yum install -y openstack-packstack
packstack --allinone --provision-demo=n --os-neutron-ovs-bridge-mappings=extnet:br-ex --os-neutron-ovs-bridge-interfaces=br-ex:eth0 --os-neutron-ml2-type-drivers=vxlan,flat
echo -e "\n***************\n Check the last log.\n *************** \n If no erroroccurs, installation can be followed with net_init.sh script.\n ************* \n Before that reboot is required\n ***************\n"