Files
puppet-manila/manifests/coordination.pp
Takashi Kajinami 0d28d114a2 coordination: Expose parameters for package management
Change-Id: I773a835b33600916bcbb0fee3693f43188e57ca2
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-10-02 14:46:07 +09:00

36 lines
1.0 KiB
Puppet

# == Class: manila::coordination
#
# Setup and configure Manila 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 manila::coordination (
$backend_url = $facts['os_service_default'],
Boolean $manage_backend_package = true,
Stdlib::Ensure::Package $package_ensure = present,
) {
include manila::deps
oslo::coordination { 'manila_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['manila_config'] -> Anchor['manila::service::begin']
}