Merge "Add check for bootstrap_node for downcase" into stable/train
This commit is contained in:
commit
7053a4a1c6
@ -92,7 +92,7 @@ class tripleo::profile::base::aodh (
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -56,7 +56,7 @@ class tripleo::profile::base::aodh::api (
|
||||
$enable_internal_tls = hiera('enable_internal_tls', false),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -115,7 +115,7 @@ class tripleo::profile::base::barbican::api (
|
||||
$oslomsg_notify_username = hiera('oslo_messaging_notify_user_name', 'guest'),
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -32,7 +32,7 @@ class tripleo::profile::base::ceilometer::upgrade (
|
||||
$bootstrap_node = hiera('gnocchi_api_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -95,7 +95,7 @@ class tripleo::profile::base::cinder (
|
||||
$oslomsg_notify_username = hiera('oslo_messaging_notify_user_name', 'guest'),
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -74,7 +74,7 @@ class tripleo::profile::base::cinder::api (
|
||||
$step = Integer(hiera('step')),
|
||||
$keystone_resources_managed = hiera('keystone_resources_managed', true),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
$manage_type = $keystone_resources_managed
|
||||
} else {
|
||||
|
@ -130,7 +130,7 @@ class tripleo::profile::base::database::mysql (
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -36,7 +36,7 @@ class tripleo::profile::base::designate::central (
|
||||
$step = Integer(hiera('step')),
|
||||
$pools_file_content = undef,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -156,7 +156,7 @@ class tripleo::profile::base::glance::api (
|
||||
# DEPRECATED PARAMETERS
|
||||
$glance_rbd_client_name = undef,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -80,7 +80,7 @@ class tripleo::profile::base::gnocchi::api (
|
||||
$step = Integer(hiera('step')),
|
||||
$incoming_storage_driver = hiera('incoming_storage_driver', undef),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -55,7 +55,7 @@ class tripleo::profile::base::heat::api (
|
||||
$heat_api_network = hiera('heat_api_network', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -55,7 +55,7 @@ class tripleo::profile::base::heat::api_cfn (
|
||||
$heat_api_cfn_network = hiera('heat_api_cfn_network', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::heat::engine (
|
||||
$bootstrap_node = hiera('heat_engine_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -65,7 +65,7 @@ class tripleo::profile::base::horizon (
|
||||
$neutron_options = hiera('horizon::neutron_options', {}),
|
||||
$memcached_ips = hiera('memcached_node_ips')
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -61,7 +61,7 @@ class tripleo::profile::base::ironic (
|
||||
$oslomsg_rpc_use_ssl = hiera('oslo_messaging_rpc_use_ssl', '0'),
|
||||
) {
|
||||
# Database is accessed by both API and conductor, hence it's here.
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -57,7 +57,7 @@ class tripleo::profile::base::ironic::api (
|
||||
include ::tripleo::profile::base::ironic
|
||||
include ::tripleo::profile::base::ironic::authtoken
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -42,7 +42,7 @@ class tripleo::profile::base::ironic::conductor (
|
||||
) {
|
||||
include ::tripleo::profile::base::ironic
|
||||
# Database is accessed by both API and conductor, hence it's here.
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -61,7 +61,7 @@ class tripleo::profile::base::ironic_inspector (
|
||||
|
||||
include ::tripleo::profile::base::ironic_inspector::authtoken
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -205,7 +205,7 @@ class tripleo::profile::base::keystone (
|
||||
$memcached_port = hiera('memcached_port', 11211),
|
||||
$keystone_resources_managed = hiera('keystone_resources_managed', true),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) and $keystone_resources_managed {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) and $keystone_resources_managed {
|
||||
$sync_db = true
|
||||
$manage_roles = true
|
||||
$manage_endpoint = true
|
||||
|
@ -90,7 +90,7 @@ class tripleo::profile::base::manila (
|
||||
$oslomsg_notify_username = hiera('oslo_messaging_notify_user_name', 'guest'),
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -95,7 +95,7 @@ class tripleo::profile::base::manila::api (
|
||||
$enable_internal_tls = hiera('enable_internal_tls', false),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -91,7 +91,7 @@ class tripleo::profile::base::mistral (
|
||||
$oslomsg_notify_username = hiera('oslo_messaging_notify_user_name', 'guest'),
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -60,7 +60,7 @@ class tripleo::profile::base::mistral::api (
|
||||
$mistral_api_wsgi_enabled = hiera('mistral_wsgi_enabled', true),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::mistral::engine (
|
||||
$bootstrap_node = hiera('mistral_engine_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::mistral::event_engine (
|
||||
$bootstrap_node = hiera('mistral_event_engine_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -37,7 +37,7 @@ class tripleo::profile::base::mistral::executor (
|
||||
$step = Integer(hiera('step')),
|
||||
$docker_group = false,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -32,7 +32,7 @@ class tripleo::profile::base::neutron::ovn_northd (
|
||||
if $step >= 4 {
|
||||
# Note this only runs on the first node in the cluster when
|
||||
# deployed on a role where multiple nodes exist.
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
include ::ovn::northd
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ class tripleo::profile::base::neutron::plugins::ml2 (
|
||||
$service_names = hiera('service_names'),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::neutron::plugins::nsx (
|
||||
$bootstrap_node = hiera('neutron_plugin_nsx_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -29,7 +29,7 @@ class tripleo::profile::base::neutron::plugins::nuage (
|
||||
$bootstrap_node = hiera('neutron_plugin_nuage_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -29,7 +29,7 @@ class tripleo::profile::base::neutron::plugins::opencontrail (
|
||||
$bootstrap_node = hiera('contrail_neutron_plugin_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::neutron::plugins::plumgrid (
|
||||
$bootstrap_node = hiera('neutron_plugin_plumgrid_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -100,7 +100,7 @@ class tripleo::profile::base::neutron::server (
|
||||
$tls_proxy_port = 9696,
|
||||
$designate_api_enabled = hiera('designate_api_enabled', false),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -107,7 +107,7 @@ class tripleo::profile::base::nova (
|
||||
$enable_cache = true,
|
||||
) {
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -88,7 +88,7 @@ class tripleo::profile::base::nova::api (
|
||||
$metadata_tls_proxy_fqdn = undef,
|
||||
$metadata_tls_proxy_port = 8775,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -34,7 +34,7 @@ class tripleo::profile::base::nova::conductor (
|
||||
include ::tripleo::profile::base::nova
|
||||
include ::nova::db
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -97,7 +97,7 @@ class tripleo::profile::base::nova::ec2api (
|
||||
$metadata_tls_proxy_fqdn = undef,
|
||||
$metadata_tls_proxy_port = 8789,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -53,7 +53,7 @@ class tripleo::profile::base::nova::metadata (
|
||||
$nova_metadata_network = hiera('nova_metadata_network', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -73,7 +73,7 @@ class tripleo::profile::base::octavia::api (
|
||||
$ovn_db_host = undef,
|
||||
$ovn_nb_port = undef,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -60,7 +60,7 @@ class tripleo::profile::base::panko::api (
|
||||
$enable_panko_expirer = hiera('enable_panko_expirer', true),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::placement (
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -53,7 +53,7 @@ class tripleo::profile::base::placement::api (
|
||||
$placement_network = hiera('placement_network', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -245,7 +245,7 @@ class tripleo::profile::base::rabbitmq (
|
||||
}
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$rabbitmq_bootstrapnode = true
|
||||
} else {
|
||||
$rabbitmq_bootstrapnode = false
|
||||
|
@ -90,7 +90,7 @@ class tripleo::profile::base::sahara (
|
||||
$oslomsg_notify_username = hiera('oslo_messaging_notify_user_name', 'guest'),
|
||||
$oslomsg_notify_use_ssl = hiera('oslo_messaging_notify_use_ssl', '0'),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::sahara::engine (
|
||||
$bootstrap_node = hiera('sahara_engine_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -118,7 +118,7 @@ class tripleo::profile::base::swift::proxy (
|
||||
$tls_proxy_fqdn = undef,
|
||||
$tls_proxy_port = 8080,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -31,7 +31,7 @@ class tripleo::profile::base::trove::api (
|
||||
$bootstrap_node = hiera('trove_api_short_bootstrap_node_name', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$sync_db = true
|
||||
} else {
|
||||
$sync_db = false
|
||||
|
@ -75,7 +75,7 @@ class tripleo::profile::base::zaqar (
|
||||
$redis_vip = hiera('redis_vip', undef),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$is_bootstrap = true
|
||||
} else {
|
||||
$is_bootstrap = false
|
||||
|
@ -36,7 +36,7 @@ class tripleo::profile::pacemaker::ceph_nfs (
|
||||
$step = hiera('step'),
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -44,7 +44,7 @@ class tripleo::profile::pacemaker::cinder::backup (
|
||||
stop => '/bin/true',
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -78,7 +78,7 @@ class tripleo::profile::pacemaker::cinder::backup_bundle (
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -43,7 +43,7 @@ class tripleo::profile::pacemaker::cinder::volume (
|
||||
stop => '/bin/true',
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -78,7 +78,7 @@ class tripleo::profile::pacemaker::cinder::volume_bundle (
|
||||
$tls_priorities = hiera('tripleo::pacemaker::tls_priorities', undef),
|
||||
$bundle_user = 'root',
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -120,7 +120,7 @@ class tripleo::profile::pacemaker::database::mysql (
|
||||
$open_files_limit = 16384,
|
||||
$promote_timeout = 300,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -189,7 +189,7 @@ class tripleo::profile::pacemaker::database::mysql_bundle (
|
||||
$promote_timeout = 300,
|
||||
$force_ocf = false,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -111,7 +111,7 @@ class tripleo::profile::pacemaker::database::redis (
|
||||
$tls_proxy_fqdn = undef,
|
||||
$tls_proxy_port = 6379,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -138,7 +138,7 @@ class tripleo::profile::pacemaker::database::redis_bundle (
|
||||
$bundle_user = 'root',
|
||||
$force_ocf = false,
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -61,7 +61,7 @@ class tripleo::profile::pacemaker::haproxy (
|
||||
manage_firewall => $manage_firewall,
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -127,7 +127,7 @@ class tripleo::profile::pacemaker::haproxy_bundle (
|
||||
) {
|
||||
include ::tripleo::profile::base::haproxy
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -36,7 +36,7 @@ class tripleo::profile::pacemaker::manila (
|
||||
$step = Integer(hiera('step')),
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -83,7 +83,7 @@ class tripleo::profile::pacemaker::manila::share_bundle (
|
||||
$pcs_tries = hiera('pcs_tries', 20),
|
||||
$step = Integer(hiera('step')),
|
||||
) {
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -135,7 +135,7 @@ class tripleo::profile::pacemaker::ovn_dbs_bundle (
|
||||
$force_ocf = false,
|
||||
) {
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -86,7 +86,7 @@ class tripleo::profile::pacemaker::rabbitmq (
|
||||
$rabbit_nodes = []
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
@ -146,7 +146,7 @@ class tripleo::profile::pacemaker::rabbitmq_bundle (
|
||||
$rabbit_nodes = []
|
||||
}
|
||||
|
||||
if $::hostname == downcase($bootstrap_node) {
|
||||
if $bootstrap_node and $::hostname == downcase($bootstrap_node) {
|
||||
$pacemaker_master = true
|
||||
} else {
|
||||
$pacemaker_master = false
|
||||
|
Loading…
Reference in New Issue
Block a user