2019-06-28 13:21:49 +00:00
#!/bin/bash
set -ex
snapctl set \
ospassword=keystone \
extgateway=10.20.20.1 \
extcidr=10.20.20.1/24 \
dns=1.1.1.1
2018-09-21 12:24:47 +02:00
2018-11-11 21:29:27 +00:00
# MySQL snapshot for speedy install
# snapshot is a mysql data dir with
# rocky keystone,nova,glance,neutron dbs.
mkdir -p ${SNAP_COMMON}/lib
tar -xJf ${SNAP}/data/mysql.tar.xz -C ${SNAP_COMMON}/lib
# Install conf.d configuration from snap for db etc
echo "Installing configuration for OpenStack Services"
for project in neutron nova keystone glance; do
mkdir -p ${SNAP_COMMON}/etc/${project}/${project}.conf.d
2019-06-28 13:21:49 +00:00
cp -r ${SNAP}/etc/${project}/${project}.conf.d/* ${SNAP_COMMON}/etc/${project}/${project}.conf.d || true # Skip conf files that have been moved into templates
2018-11-11 21:29:27 +00:00
done
2019-06-28 13:21:49 +00:00
snap-openstack setup # Sets up templates for the first time.
2018-11-11 21:29:27 +00:00
# Configure Keystone Fernet Keys
2019-06-28 13:21:49 +00:00
snap-openstack launch keystone-manage fernet_setup --keystone-user root --keystone-group root