diff --git a/manifests/glance/api.pp b/manifests/glance/api.pp index 1c7c6bf..6704a4a 100644 --- a/manifests/glance/api.pp +++ b/manifests/glance/api.pp @@ -6,6 +6,7 @@ class kickstack::glance::api inherits kickstack { # Keystone accordingly. If no fact has been set, generate a password. $service_password = getvar("${fact_prefix}glance_keystone_password") $sql_conn = getvar("${fact_prefix}glance_sql_connection") + $reg_host = getvar("${fact_prefix}glance_registry_host") class { '::glance::api': verbose => $kickstack::verbose, @@ -14,6 +15,7 @@ class kickstack::glance::api inherits kickstack { keystone_user => 'glance', keystone_password => $service_password, sql_connection => $sql_conn, + registry_host => $reg_host, } } diff --git a/manifests/glance/registry.pp b/manifests/glance/registry.pp index 063444b..96d6d94 100644 --- a/manifests/glance/registry.pp +++ b/manifests/glance/registry.pp @@ -15,4 +15,12 @@ class kickstack::glance::registry inherits kickstack { keystone_password => "$service_password", sql_connection => "$sql_conn", } + + # Export the registry host name string for the service + kickstack::exportfact::export { "glance_registry_host": + value => "${hostname}", + tag => "glance", + require => Class['::glance::registry'] + } + }