@@ -5,11 +5,14 @@ yum install -y "openstack-heat-*" python-heatclient
5
5
6
6
CONFIG_ROOT_MYSQL_PW=` crudini --get ~ /packstack_answers.conf general CONFIG_MYSQL_PW`
7
7
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
+
8
12
HEAT_DB_PW=Passw0rd
9
13
HEAT_USER_PW=Passw0rd
10
- HEAT_HOSTNAME=192.168.209.130
14
+ HEAT_HOSTNAME=$QPID_HOST
11
15
HEAT_CFN_HOSTNAME=$HEAT_HOSTNAME
12
- QPID_HOST=$HEAT_HOSTNAME
13
16
14
17
crudini --set /etc/heat/heat.conf DEFAULT sql_connection mysql://heat:$HEAT_DB_PW @localhost/heat
15
18
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
31
34
32
35
pushd . && cd /etc/init.d && for s in $( ls openstack-heat-* ) ; do chkconfig $s on && service $s start; done && popd
33
36
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
37
40
# crudini --set /etc/heat/heat.conf DEFAULT debug true
38
41
# crudini --set /etc/heat/heat.conf DEFAULT verbose true
39
42
crudini --set /etc/heat/heat.conf DEFAULT rpc_backend heat.openstack.common.rpc.impl_qpid
40
43
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
43
46
44
47
# Note: had to do this, possibly a bug in the heat RPMs
45
48
chown heat.heat /var/log/heat/*
0 commit comments