Merge "Configure the Metadata Agent only when enable_metadata_agent is set"
This commit is contained in:
commit
a71e9f8074
|
@ -34,6 +34,10 @@
|
|||
# (Optional) Nova tenant name
|
||||
# Defaults to hiera('nova_os_tenant_name')
|
||||
#
|
||||
# [*enable_metadata_agent*]
|
||||
# (Optional) Enable metadata agent
|
||||
# Defaults to true
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step of the deployment
|
||||
# Defaults to hiera('step')
|
||||
|
@ -43,11 +47,13 @@ class tripleo::profile::base::neutron::agents::nuage (
|
|||
$nova_metadata_ip = hiera('nova_metadata_node_ips', ''),
|
||||
$nova_os_password = hiera('nova_password', ''),
|
||||
$nova_os_tenant_name = hiera('nova::api::admin_tenant_name', ''),
|
||||
$enable_metadata_agent = true,
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $step >= 4 {
|
||||
include ::nuage::vrs
|
||||
|
||||
if $enable_metadata_agent {
|
||||
class { '::nuage::metadataagent':
|
||||
nova_os_tenant_name => $nova_os_tenant_name,
|
||||
nova_os_password => $nova_os_password,
|
||||
|
@ -56,3 +62,4 @@ class tripleo::profile::base::neutron::agents::nuage (
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue