-
Notifications
You must be signed in to change notification settings - Fork 1
/
devstack_on_openSUSE.2.sh
executable file
·40 lines (23 loc) · 1.07 KB
/
devstack_on_openSUSE.2.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
## Setup
## This is the main install script which should be run after the first script which ensures all prerequisties are installed.
## Unlike the first script, this script should be run in a normal User(non-root) console
## Within minutes after this script runs, you will have to provide your sudo password only once when stack.sh is initiated. After that, go get a cup of coffee and come back approximately a little less than an hour later.
## Extra Reminder! - Edit the commands below that set your passwords!
mkdir ~/devstack
git clone https://github.com/openstack-dev/devstack.git ~/devstack
cd ~/devstack
## Prepare your Devstack Answer file. Replace each "password" with your own passwords
cat >> localrc << EOF
ADMIN_PASSWORD=password
MYSQL_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=tokentoken
FLAT_INTERFACE=br100
LOGFILE=\$DEST/logs/stack.sh.log
EOF
## Workaround for openSUSE "hostname" bug
## https://bugzilla.opensuse.org/show_bug.cgi?ie=952517
sed -i 's/hostname -f/hostname/g' lib/tls
## Install Devstack
FORCE=yes ./stack.sh