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/heat/heat.conf
|
|
|
|
|
|
|
|
[database]
|
|
|
|
connection = mysql+pymysql://heat:$HEAT_PASSWORD@$MYSQL_HOST/heat
|
|
|
|
|
|
|
|
[DEFAULT]
|
|
|
|
transport_url = rabbit://$RABBIT_USER:$RABBIT_PASSWORD@$RABBIT_HOST
|
|
|
|
heat_metadata_server_url = http://$HEAT_HOST:8000
|
|
|
|
heat_waitcondition_server_url = http://$HEAT_HOST:8000/v1/waitcondition
|
|
|
|
|
|
|
|
|
|
|
|
[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 = $HEAT_USER
|
|
|
|
password = $HEAT_PASSWORD
|
|
|
|
|
|
|
|
[trustee]
|
|
|
|
auth_plugin = password
|
2018-09-24 09:55:01 +02:00
|
|
|
auth_url = https://$KEYSTONE_HOST:35357
|
2018-04-23 14:57:26 +02:00
|
|
|
username = $HEAT_USER
|
|
|
|
password = $HEAT_PASSWORD
|
|
|
|
user_domain_name = Default
|
|
|
|
|
|
|
|
EOF
|
2018-09-25 10:54:42 +02:00
|
|
|
|
|
|
|
echo "172.23.59.101 merlin.hpc.rug.nl" >> /etc/hosts
|