92a6ea8dc7
Renamed the old and outdated "configure-openstack" script to "init.sh" Updated init.sh and folded most of the configure hook into it. Removed database installation step from install hook. We can now install microstack without a database dump, which helps immensely in updating. And we have a logical place to put additional configuraiton, including some of the manual steps in DEMO.md, which could be scripted if we gave users a chance to skip the system changes that they wanted to skip. Also updated README and DEMO file to match new flow. Updated test files. Future cleanup and features documented in Trello, but not included in this PR, which is big enough already :-) Change-Id: I8d926a8b463124494ddb7a4696adbe86f89db7d5
26 lines
743 B
Bash
Executable File
26 lines
743 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
|
|
|
|
# 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.
|
|
|
|
|
|
|