4
4
SECONDS=0
5
5
6
6
# Cloud User: cloud-user (CentOS) or ubuntu?
7
- CLOUD_USER=cloud-user
7
+ CLOUD_USER=ubuntu
8
8
9
9
ENABLE_OVN=true
10
10
@@ -16,6 +16,7 @@ echo "[INFO] Given docker registry IP: $registry_ip"
16
16
# Disable the firewall.
17
17
if [[ " ${CLOUD_USER} " = " ubuntu" ]]
18
18
then
19
+ grep -q $HOSTNAME /etc/hosts || (echo " $( ip r | grep -o ' ^default via.*src [0-9.]*' | awk ' {print $NF}' ) $HOSTNAME " | sudo tee -a /etc/hosts)
19
20
dpkg -l ufw && sudo systemctl is-enabled ufw && sudo systemctl stop ufw && sudo systemctl disable ufw
20
21
else
21
22
rpm -q firewalld && sudo systemctl is-enabled firewalld && sudo systemctl stop firewalld && sudo systemctl disable firewalld
88
89
89
90
# Clone Kayobe.
90
91
cd $HOME
91
- [[ -d kayobe ]] || git clone https://opendev.org/openstack/kayobe.git -b stable/yoga
92
+ # [[ -d kayobe ]] || git clone https://opendev.org/openstack/kayobe.git -b stable/yoga
93
+ [[ -d kayobe ]] || git clone https://github.com/oneswig/kayobe -b oneswig/yoga
92
94
cd kayobe
93
95
94
96
# Bump the provisioning time - it can be lengthy on virtualised storage
@@ -100,7 +102,8 @@ sed -i.bak 's%^[# ]*wait_active_timeout:.*% wait_active_timeout: 5000%' ~/kay
100
102
# Clone this Kayobe configuration.
101
103
mkdir -p config/src
102
104
cd config/src/
103
- [[ -d kayobe-config ]] || git clone https://github.com/stackhpc/a-universe-from-nothing.git -b stable/yoga kayobe-config
105
+ # [[ -d kayobe-config ]] || git clone https://github.com/stackhpc/a-universe-from-nothing.git -b stable/yoga kayobe-config
106
+ [[ -d kayobe-config ]] || git clone https://github.com/stackhpc/a-universe-from-nothing.git -b yoga-XL kayobe-config
104
107
105
108
# Set default registry name to the one we just created
106
109
sed -i.bak ' s/^docker_registry.*/docker_registry: ' $registry_ip ' :4000/' kayobe-config/etc/kayobe/docker.yml
@@ -145,6 +148,12 @@ if ! ./dev/seed-deploy.sh; then
145
148
./dev/seed-deploy.sh
146
149
fi
147
150
151
+ # Run TENKS
152
+ cd ~ /kayobe
153
+ source dev/environment-setup.sh
154
+ export TENKS_CONFIG_PATH=config/src/kayobe-config/tenks.yml
155
+ ./dev/tenks-deploy-overcloud.sh ./tenks
156
+
148
157
# Duration
149
158
duration=$SECONDS
150
159
echo " [INFO] $(( $duration / 60 )) minutes and $(( $duration % 60 )) seconds elapsed."
0 commit comments