Move glance::db data within service template
authorGiulio Fidente <gfidente@redhat.com>
Wed, 29 Jun 2016 10:53:33 +0000 (12:53 +0200)
committerEmilien Macchi <emilien@redhat.com>
Sat, 9 Jul 2016 04:32:18 +0000 (04:32 +0000)
Change-Id: I405bc9895160cc867f933e6b0d56546d460d2e3a

puppet/hieradata/database.yaml
puppet/services/glance-registry.yaml

index d59afb4..a100ae3 100644 (file)
@@ -13,14 +13,6 @@ nova::db::mysql_api::allowed_hosts:
   - '%'
   - "%{hiera('mysql_bind_host')}"
 
-# Glance
-glance::db::mysql::user: glance
-glance::db::mysql::host: "%{hiera('mysql_virtual_ip')}"
-glance::db::mysql::dbname: glance
-glance::db::mysql::allowed_hosts:
-  - '%'
-  - "%{hiera('mysql_bind_host')}"
-
 # Neutron
 neutron::db::mysql::user: neutron
 neutron::db::mysql::host: "%{hiera('mysql_virtual_ip')}"
index 6f2f037..d71157f 100644 (file)
@@ -41,5 +41,12 @@ outputs:
         glance::registry::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
         glance::registry::debug: {get_param: Debug}
         glance::registry::workers: {get_param: GlanceWorkers}
+        glance::db::mysql::user: glance
+        glance::db::mysql::host: {get_param: [EndpointMap, MysqlInternal, host]}
+        glance::db::mysql::dbname: glance
+        glance::db::mysql::allowed_hosts:
+          - '%'
+          - "%{hiera('mysql_bind_host')}"
+
       step_config: |
         include ::tripleo::profile::base::glance::registry