95efd789b4
Moved openstack env variables out of snapcraft.yaml, and into a "microtack.rc". Made openstack-wrapper, which auto sources microstack.rc. Key off of revised snap.openstack, which supports snapctl config values in templates. Moved a lot of the overlay into snap-overlay/templates, and added config values to them. Also writes templates just once, when you run snap-openstack setup. Change-Id: Ib0f2e3fc97f491d9ed9dfbafc61dc8e27a8a2b48
27 lines
925 B
Bash
Executable File
27 lines
925 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
snapctl set \
|
|
ospassword=keystone \
|
|
extgateway=10.20.20.1 \
|
|
extcidr=10.20.20.1/24 \
|
|
dns=1.1.1.1
|
|
|
|
# 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
|
|
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
|
|
done
|
|
|
|
snap-openstack setup # Sets up templates for the first time.
|
|
|
|
# Configure Keystone Fernet Keys
|
|
snap-openstack launch keystone-manage fernet_setup --keystone-user root --keystone-group root
|