Move heat::db data within service template
authorGiulio Fidente <gfidente@redhat.com>
Wed, 29 Jun 2016 10:58:11 +0000 (12:58 +0200)
committerEmilien Macchi <emilien@redhat.com>
Sat, 9 Jul 2016 04:32:47 +0000 (04:32 +0000)
Change-Id: I3fada6c5b0265bc6536c89da0ef4b709ead13b7d

puppet/hieradata/database.yaml
puppet/services/heat-engine.yaml

index 471e597..7af1ac2 100644 (file)
@@ -21,14 +21,6 @@ neutron::db::mysql::allowed_hosts:
   - '%'
   - "%{hiera('mysql_bind_host')}"
 
-# Heat
-heat::db::mysql::user: heat
-heat::db::mysql::host: "%{hiera('mysql_virtual_ip')}"
-heat::db::mysql::dbname: heat
-heat::db::mysql::allowed_hosts:
-  - '%'
-  - "%{hiera('mysql_bind_host')}"
-
 # Ironic
 ironic::db::mysql::user: ironic
 ironic::db::mysql::host: "%{hiera('mysql_virtual_ip')}"
index 4a5ec2c..77af55e 100644 (file)
@@ -54,5 +54,11 @@ outputs:
             heat::keystone_password: {get_param: HeatPassword}
             heat::db::mysql::password: {get_param: HeatPassword}
             heat::keystone::domain::domain_password: {get_param: HeatStackDomainAdminPassword}
+            heat::db::mysql::user: heat
+            heat::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host]}
+            heat::db::mysql::dbname: heat
+            heat::db::mysql::allowed_hosts:
+              - '%'
+              - "%{hiera('mysql_bind_host')}"
       step_config: |
         include ::tripleo::profile::base::heat::engine