Skip to content

Commit 687a69a

Browse files
committed
RDO heat script additional automation
1 parent 8baa510 commit 687a69a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

configure-rdo-heat.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ yum install -y "openstack-heat-*" python-heatclient
55

66
CONFIG_ROOT_MYSQL_PW=`crudini --get ~/packstack_answers.conf general CONFIG_MYSQL_PW`
77

8+
QPID_HOST=`crudini --get /etc/nova/nova.conf DEFAULT qpid_hostname`
9+
QPID_USERNAME=`crudini --get /etc/nova/nova.conf DEFAULT qpid_username`
10+
QPID_PASSWORD=`crudini --get /etc/nova/nova.conf DEFAULT qpid_password`
11+
812
HEAT_DB_PW=Passw0rd
913
HEAT_USER_PW=Passw0rd
10-
HEAT_HOSTNAME=192.168.209.130
14+
HEAT_HOSTNAME=$QPID_HOST
1115
HEAT_CFN_HOSTNAME=$HEAT_HOSTNAME
12-
QPID_HOST=$HEAT_HOSTNAME
1316

1417
crudini --set /etc/heat/heat.conf DEFAULT sql_connection mysql://heat:$HEAT_DB_PW@localhost/heat
1518
heat-db-setup rpm -y -r $CONFIG_ROOT_MYSQL_PW -p $HEAT_DB_PW
@@ -31,15 +34,15 @@ keystone role-create --name heat_stack_user
3134

3235
pushd . && cd /etc/init.d && for s in $(ls openstack-heat-*); do chkconfig $s on && service $s start; done && popd
3336

34-
crudini --set /etc/heat/heat.conf DEFAULT heat_metadata_server_url http://$HEAT_HOSTNAME:8000
35-
crudini --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url http://$HEAT_HOSTNAME:8000/v1/waitcondition
36-
crudini --set /etc/heat/heat.conf DEFAULT heat_watch_server_url http://$HEAT_HOSTNAME:8003
37+
crudini --set /etc/heat/heat.conf DEFAULT heat_metadata_server_url http://$HEAT_CFN_HOSTNAME:8000
38+
crudini --set /etc/heat/heat.conf DEFAULT heat_waitcondition_server_url http://$HEAT_CFN_HOSTNAME:8000/v1/waitcondition
39+
crudini --set /etc/heat/heat.conf DEFAULT heat_watch_server_url http://$HEAT_CFN_HOSTNAME:8003
3740
#crudini --set /etc/heat/heat.conf DEFAULT debug true
3841
#crudini --set /etc/heat/heat.conf DEFAULT verbose true
3942
crudini --set /etc/heat/heat.conf DEFAULT rpc_backend heat.openstack.common.rpc.impl_qpid
4043
crudini --set /etc/heat/heat.conf DEFAULT qpid_hostname $QPID_HOST
41-
crudini --set /etc/heat/heat.conf DEFAULT qpid_username guest
42-
crudini --set /etc/heat/heat.conf DEFAULT qpid_password guest
44+
crudini --set /etc/heat/heat.conf DEFAULT qpid_username $QPID_USERNAME
45+
crudini --set /etc/heat/heat.conf DEFAULT qpid_password $QPID_PASSWORD
4346

4447
# Note: had to do this, possibly a bug in the heat RPMs
4548
chown heat.heat /var/log/heat/*

0 commit comments

Comments
 (0)