
Change-Id: Ib5742116b15a1b7b170bbda75c9470a5e6429944 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
36 lines
1.0 KiB
Puppet
36 lines
1.0 KiB
Puppet
# == Class: cinder::coordination
|
|
#
|
|
# Setup and configure Cinder coordination settings.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*backend_url*]
|
|
# (Optional) Coordination backend URL.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*manage_backend_package*]
|
|
# (Optional) Whether to install the backend package.
|
|
# Defaults to true.
|
|
#
|
|
# [*package_ensure*]
|
|
# (Optional) ensure state for package.
|
|
# Defaults to 'present'
|
|
#
|
|
class cinder::coordination (
|
|
$backend_url = $facts['os_service_default'],
|
|
Boolean $manage_backend_package = true,
|
|
Stdlib::Ensure::Package $package_ensure = present,
|
|
) {
|
|
include cinder::deps
|
|
|
|
oslo::coordination { 'cinder_config':
|
|
backend_url => $backend_url,
|
|
manage_backend_package => $manage_backend_package,
|
|
package_ensure => $package_ensure,
|
|
}
|
|
|
|
# all coordination settings should be applied and all packages should be
|
|
# installed before service startup
|
|
Oslo::Coordination['cinder_config'] -> Anchor['cinder::service::begin']
|
|
}
|