-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall-openstack-minimal.sh
More file actions
62 lines (41 loc) · 1.38 KB
/
install-openstack-minimal.sh
File metadata and controls
62 lines (41 loc) · 1.38 KB
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
#!/bin/bash
bgreen='\033[1;32m'
red='\033[0;31m'
nc='\033[0m'
bold="\033[1m"
blink="\033[5m"
echo -e "${bgreen}Install OpenStack-PackStack on Almalinux 9 ${nc} "
#Install & Configure OpenStack-PackStack
#For AlmaLinux 9
#dnf config-manager --set-enabled crb -y
#Working On AlmaLinux 9
#dnf install centos-release-openstack-yoga -y
dnf install -y openstack-packstack -y
dnf repolist
dnf update -y
packstack --version
#packstack --help
#Generate Answers
#Pre-Installation with Generate Answers file
# Verifying IP & MAC Addresses
ip a
echo
echo
read -p "Type static IP Interface Name: " STATIC_INTERFACE
read -p "Type Your OpenStack Administrator Password: " apassword
packstack --os-neutron-ml2-tenant-network-types=vxlan \
--ntp-servers=0.asia.pool.ntp.org,1.asia.pool.ntp.org,2.asia.pool.ntp.org,3.asia.pool.ntp.org \
--os-neutron-ovs-bridge-interfaces=br-ex:$STATIC_INTERFACE \
--os-neutron-ml2-mechanism-drivers=openvswitch \
--os-neutron-ml2-type-drivers=vxlan,flat \
--os-neutron-l2-agent=openvswitch \
--keystone-admin-passwd=$apassword \
--provision-demo=n \
--os-heat-install=y \
--gen-answer-file /root/answers.txt
#Take Copy the answes file
cp /root/answers.txt /root/answers.copy.txt
#Installation OpenStack
packstack --answer-file /root/answers.txt | tee openstack-installation-log.txt
#To access Horizon Dashboard use the URL:
echo -e "${bgreen}http://$IP_ADDRESS/dashboard ${nc} "