OpenStack in a snap!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
852 B

  1. #!/bin/bash
  2. set -ex
  3. snapctl set \
  4. ospassword=keystone \
  5. extgateway=10.20.20.1 \
  6. extcidr=10.20.20.1/24 \
  7. dns=1.1.1.1
  8. # MySQL snapshot for speedy install
  9. # snapshot is a mysql data dir with
  10. # rocky keystone,nova,glance,neutron dbs.
  11. mkdir -p ${SNAP_COMMON}/lib
  12. # Install conf.d configuration from snap for db etc
  13. echo "Installing configuration for OpenStack Services"
  14. for project in neutron nova keystone glance; do
  15. mkdir -p ${SNAP_COMMON}/etc/${project}/${project}.conf.d
  16. 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
  17. done
  18. # Make a place for our horizon config overrides to live
  19. mkdir -p ${SNAP_COMMON}/etc/horizon/local_settings.d
  20. snap-openstack setup # Sets up templates for the first time.