2018-04-23 14:57:26 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Generate config files from environments values.
|
|
|
|
# These are to be passed to the docker container using -e
|
|
|
|
|
|
|
|
cat << EOF > /etc/cinder/cinder.conf
|
|
|
|
|
|
|
|
[database]
|
|
|
|
connection = mysql+pymysql://$CINDER_USER:$CINDER_PASSWORD@$MYSQL_HOST/cinder
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
auth_strategy = keystone
|
2018-05-01 14:24:30 +02:00
|
|
|
transport_url = rabbit://$RABBIT_USER:$RABBIT_PASSWORD@$RABBIT_HOST
|
2018-04-23 14:57:26 +02:00
|
|
|
my_ip = $MY_IP
|
2018-04-23 15:07:18 +02:00
|
|
|
enabled_backends = RBD-backend
|
2018-04-23 14:57:26 +02:00
|
|
|
glance_api_servers = http://$GLANCE_HOST:9292
|
|
|
|
|
|
|
|
[keystone_authtoken]
|
2018-09-24 09:55:01 +02:00
|
|
|
auth_uri = https://$KEYSTONE_HOST:5000
|
|
|
|
auth_url = https://$KEYSTONE_HOST:35357
|
2018-04-23 14:57:26 +02:00
|
|
|
memcached_servers = $MEMCACHED_HOST:11211
|
|
|
|
auth_type = password
|
|
|
|
project_domain_name = Default
|
|
|
|
user_domain_name = Default
|
|
|
|
project_name = service
|
|
|
|
username = $CINDER_USER
|
|
|
|
password = $CINDER_PASSWORD
|
|
|
|
|
|
|
|
[oslo_concurrency]
|
|
|
|
lock_path = /var/lib/cinder/tmp
|
|
|
|
|
2018-04-23 15:07:18 +02:00
|
|
|
[RBD-backend]
|
2018-09-13 16:13:21 +02:00
|
|
|
volume_backend_name = RBD-backend
|
|
|
|
rbd_pool = volumes
|
|
|
|
rbd_user = volumes
|
|
|
|
rbd_secret_uuid = $RBD_SECRET_UUID
|
|
|
|
volume_driver = cinder.volume.drivers.rbd.RBDDriver
|
|
|
|
rbd_ceph_conf = /etc/ceph/ceph.conf
|
2018-04-23 14:57:26 +02:00
|
|
|
|
|
|
|
EOF
|
2018-09-25 10:54:42 +02:00
|
|
|
|
|
|
|
echo "172.23.59.101 merlin.hpc.rug.nl" >> /etc/hosts
|