Remove manage_service and enabled from TripleO manifests
These can be controlled via the specific Pacemaker role template. Depends-On: I91a4267f0fc230f63df3333747d28463c7ae55fe Change-Id: I8ef7bb94e048b998712b3534ceb51a7d10d016e9
This commit is contained in:
parent
01ffa0be00
commit
837643416d
|
@ -18,14 +18,6 @@
|
|||
#
|
||||
# === Parameters
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the glance service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the glance service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
|
@ -36,8 +28,6 @@
|
|||
# Defaults to downcase(hiera('glance_backend', 'swift'))
|
||||
#
|
||||
class tripleo::profile::base::glance::api (
|
||||
$manage_service = undef,
|
||||
$enabled = undef,
|
||||
$step = hiera('step'),
|
||||
$glance_backend = downcase(hiera('glance_backend', 'swift')),
|
||||
) {
|
||||
|
@ -57,12 +47,9 @@ class tripleo::profile::base::glance::api (
|
|||
include ::glance::config
|
||||
class { '::glance::api':
|
||||
known_stores => $glance_store,
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled,
|
||||
}
|
||||
include ::glance::notify::rabbitmq
|
||||
include join(['::glance::backend::', $glance_backend])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -22,14 +22,6 @@
|
|||
# (Optional) Whether to run db sync
|
||||
# Defaults to true
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the glance service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the glance service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
|
@ -41,8 +33,6 @@
|
|||
#
|
||||
class tripleo::profile::base::glance::registry (
|
||||
$sync_db = true,
|
||||
$manage_service = undef,
|
||||
$enabled = undef,
|
||||
$step = hiera('step'),
|
||||
$glance_backend = downcase(hiera('glance_backend', 'swift')),
|
||||
) {
|
||||
|
@ -57,12 +47,9 @@ class tripleo::profile::base::glance::registry (
|
|||
include ::glance::config
|
||||
class { '::glance::registry' :
|
||||
sync_db => $sync_db,
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled,
|
||||
}
|
||||
include ::glance::notify::rabbitmq
|
||||
include join(['::glance::backend::', $glance_backend])
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -22,14 +22,6 @@
|
|||
# (Optional) Whether to run db sync
|
||||
# Defaults to true
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the keystone service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the keystone service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*bootstrap_master*]
|
||||
# (Optional) The hostname of the node responsible for bootstrapping
|
||||
# Defaults to hiera('bootstrap_nodeid')
|
||||
|
@ -53,8 +45,6 @@
|
|||
#
|
||||
class tripleo::profile::base::keystone (
|
||||
$sync_db = true,
|
||||
$manage_service = undef,
|
||||
$enabled = undef,
|
||||
$bootstrap_master = undef,
|
||||
$manage_roles = true,
|
||||
$manage_endpoint = true,
|
||||
|
@ -69,8 +59,6 @@ class tripleo::profile::base::keystone (
|
|||
if $step >= 4 or ( $step >= 3 and $sync_db ) {
|
||||
class { '::keystone':
|
||||
sync_db => $sync_db,
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled,
|
||||
enable_bootstrap => $bootstrap_master,
|
||||
}
|
||||
|
||||
|
|
|
@ -22,14 +22,6 @@
|
|||
# (Optional)
|
||||
# Defaults to hiera('neutron_dnsmasq_options')
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the Neutron DHCP Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the Neutron DHCP Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
|
@ -37,16 +29,11 @@
|
|||
#
|
||||
class tripleo::profile::base::neutron::dhcp (
|
||||
$neutron_dnsmasq_options = hiera('neutron_dnsmasq_options', ''),
|
||||
$enabled = undef,
|
||||
$manage_service = undef,
|
||||
$step = hiera('step'),
|
||||
) {
|
||||
if $step >= 4 {
|
||||
include ::tripleo::profile::base::neutron
|
||||
class { '::neutron::agents::dhcp':
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled
|
||||
}
|
||||
include ::neutron::agents::dhcp
|
||||
|
||||
Service<| title == 'neutron-server' |> -> Service <| title == 'neutron-dhcp' |>
|
||||
}
|
||||
|
|
|
@ -22,30 +22,17 @@
|
|||
# (Optional) Whether to set ovs_use_veth (for older kernel support)
|
||||
# Defaults to hiera('neutron_ovs_use_veth', false)
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the Neutron L3 Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the Neutron L3 Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
# Defaults to hiera('step')
|
||||
#
|
||||
class tripleo::profile::base::neutron::l3 (
|
||||
$enabled = undef,
|
||||
$manage_service = undef,
|
||||
$step = hiera('step'),
|
||||
) {
|
||||
if $step >= 4 {
|
||||
include ::tripleo::profile::base::neutron
|
||||
class { '::neutron::agents::l3':
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled
|
||||
}
|
||||
include ::neutron::agents::l3
|
||||
|
||||
Service<| title == 'neutron-server' |> -> Service <| title == 'neutron-l3' |>
|
||||
}
|
||||
|
|
|
@ -18,30 +18,17 @@
|
|||
#
|
||||
# === Parameters
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the Neutron Metadata Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the Neutron Metadata Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
# Defaults to hiera('step')
|
||||
#
|
||||
class tripleo::profile::base::neutron::metadata (
|
||||
$enabled = undef,
|
||||
$manage_service = undef,
|
||||
$step = hiera('step'),
|
||||
) {
|
||||
if $step >= 4 {
|
||||
include ::tripleo::profile::base::neutron
|
||||
class { '::neutron::agents::metadata':
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled
|
||||
}
|
||||
include ::neutron::agents::metadata
|
||||
|
||||
Service<| title == 'neutron-server' |> -> Service<| title == 'neutron-metadata' |>
|
||||
}
|
||||
|
|
|
@ -18,32 +18,19 @@
|
|||
#
|
||||
# === Parameters
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the Neutron OVS Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the Neutron OVS Agent service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
# Defaults to hiera('step')
|
||||
#
|
||||
class tripleo::profile::base::neutron::ovs(
|
||||
$manage_service = undef,
|
||||
$enabled = undef,
|
||||
$step = hiera('step'),
|
||||
) {
|
||||
|
||||
include ::tripleo::profile::base::neutron
|
||||
|
||||
if $step >= 4 {
|
||||
class { '::neutron::agents::ml2::ovs':
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled
|
||||
}
|
||||
include ::neutron::agents::ml2::ovs
|
||||
|
||||
# Optional since manage_service may be false and neutron server may not be colocated.
|
||||
Service<| title == 'neutron-server' |> -> Service<| title == 'neutron-ovs-agent-service' |>
|
||||
|
|
|
@ -22,14 +22,6 @@
|
|||
# (Optional) Whether to run Neutron DB sync operations
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*manage_service*]
|
||||
# (Optional) Whether to manage the Neutron Server service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*enabled*]
|
||||
# (Optional) Whether to enable the Neutron Server service
|
||||
# Defaults to undef
|
||||
#
|
||||
# [*step*]
|
||||
# (Optional) The current step in deployment. See tripleo-heat-templates
|
||||
# for more details.
|
||||
|
@ -37,8 +29,6 @@
|
|||
#
|
||||
class tripleo::profile::base::neutron::server (
|
||||
$sync_db = true,
|
||||
$manage_service = undef,
|
||||
$enabled = undef,
|
||||
$step = hiera('step'),
|
||||
) {
|
||||
|
||||
|
@ -53,8 +43,6 @@ class tripleo::profile::base::neutron::server (
|
|||
|
||||
class { '::neutron::server':
|
||||
sync_db => $sync_db,
|
||||
manage_service => $manage_service,
|
||||
enabled => $enabled
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,14 +75,9 @@ class tripleo::profile::pacemaker::glance (
|
|||
$pacemaker_master = false
|
||||
}
|
||||
|
||||
class { '::tripleo::profile::base::glance::api':
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
include ::tripleo::profile::base::glance::api
|
||||
class { '::tripleo::profile::base::glance::registry':
|
||||
sync_db => $pacemaker_master,
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
|
||||
if $step >= 4 {
|
||||
|
|
|
@ -60,8 +60,6 @@ class tripleo::profile::pacemaker::keystone (
|
|||
|
||||
class { '::tripleo::profile::base::keystone':
|
||||
sync_db => $pacemaker_master,
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
bootstrap_master => $pacemaker_master,
|
||||
manage_roles => $manage_roles,
|
||||
manage_endpoint => $manage_roles
|
||||
|
|
|
@ -34,11 +34,8 @@ class tripleo::profile::pacemaker::neutron::dhcp (
|
|||
|
||||
include ::neutron::params
|
||||
include ::tripleo::profile::pacemaker::neutron
|
||||
include ::tripleo::profile::base::neutron::dhcp
|
||||
|
||||
class { '::tripleo::profile::base::neutron::dhcp':
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
if $step >= 5 and downcase($::hostname) == $pacemaker_master {
|
||||
pacemaker::resource::service { $::neutron::params::dhcp_agent_service:
|
||||
clone_params => 'interleave=true',
|
||||
|
|
|
@ -34,11 +34,8 @@ class tripleo::profile::pacemaker::neutron::l3 (
|
|||
|
||||
include ::neutron::params
|
||||
include ::tripleo::profile::pacemaker::neutron
|
||||
include ::tripleo::profile::base::neutron::l3
|
||||
|
||||
class { '::tripleo::profile::base::neutron::l3':
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
if $step >= 5 and downcase($::hostname) == $pacemaker_master {
|
||||
pacemaker::resource::service { $::neutron::params::l3_agent_service:
|
||||
clone_params => 'interleave=true',
|
||||
|
|
|
@ -34,11 +34,8 @@ class tripleo::profile::pacemaker::neutron::metadata (
|
|||
|
||||
include ::neutron::params
|
||||
include ::tripleo::profile::pacemaker::neutron
|
||||
include ::tripleo::profile::base::neutron::metadata
|
||||
|
||||
class { '::tripleo::profile::base::neutron::metadata':
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
if $step >= 5 and downcase($::hostname) == $pacemaker_master {
|
||||
pacemaker::resource::service { $::neutron::params::metadata_agent_service:
|
||||
clone_params => 'interleave=true',
|
||||
|
|
|
@ -34,11 +34,7 @@ class tripleo::profile::pacemaker::neutron::ovs (
|
|||
|
||||
include ::neutron::params
|
||||
include ::tripleo::profile::pacemaker::neutron
|
||||
|
||||
class { '::tripleo::profile::base::neutron::ovs':
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
include ::tripleo::profile::base::neutron::ovs
|
||||
|
||||
if $step >= 5 and downcase($::hostname) == $pacemaker_master {
|
||||
|
||||
|
|
|
@ -38,8 +38,6 @@ class tripleo::profile::pacemaker::neutron::server (
|
|||
|
||||
class { '::tripleo::profile::base::neutron::server':
|
||||
sync_db => ($::hostname == downcase($pacemaker_master)),
|
||||
manage_service => false,
|
||||
enabled => false,
|
||||
}
|
||||
|
||||
if ($::hostname == downcase($pacemaker_master)) {
|
||||
|
|
Loading…
Reference in New Issue