
This adds defined anchor points for external modules to hook into the software install, config and service dependency chain. This allows external modules to manage software installation (virtualenv, containers, etc) and service management (pacemaker) without needing rely on resources that may change or be renamed. Change-Id: If4f585264f5f5a15549855d97b532866d91f5215
110 lines
3.4 KiB
Puppet
110 lines
3.4 KiB
Puppet
# == Class: zaqar
|
|
#
|
|
# Full description of class zaqar here.
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*auth_strategy*]
|
|
# Backend to use for authentication. For no auth, keep it empty.
|
|
# Default 'keystone'.
|
|
#
|
|
# [*admin_mode*]
|
|
# Activate privileged endpoints. (boolean value)
|
|
# Default false
|
|
#
|
|
# [*pooling*]
|
|
# Enable pooling across multiple storage backends. If pooling is
|
|
# enabled, the storage driver configuration is used to determine where
|
|
# the catalogue/control plane data is kept. (boolean value)
|
|
# Default false
|
|
#
|
|
# [*queue_pipeline*]
|
|
# Pipeline to use for processing queue operations.
|
|
# This pipeline will be consumed before calling the storage driver's
|
|
# controller methods.
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*message_pipeline*]
|
|
# Pipeline to use for processing message operations.
|
|
# This pipeline will be consumed before calling the storage driver's
|
|
# controller methods.
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*claim_pipeline*]
|
|
# Pipeline to use for processing claim operations. This
|
|
# pipeline will be consumed before calling the storage driver's controller
|
|
# methods.
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*subscription_pipeline*]
|
|
# Pipeline to use for processing subscription
|
|
# operations. This pipeline will be consumed before calling the storage
|
|
# driver's controller methods.
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*max_messages_post_size*]
|
|
# Defines the maximum size of message posts. (integer value)
|
|
# Defaults to $::os_service_default.
|
|
#
|
|
# [*unreliable*]
|
|
# Disable all reliability constraints. (boolean value)
|
|
# Default false
|
|
#
|
|
# [*package_name*]
|
|
# (Optional) Package name to install for zaqar.
|
|
# Defaults to $::zaqar::params::package_name
|
|
#
|
|
# [*package_ensure*]
|
|
# (Optional) Ensure state for package.
|
|
# Defaults to present.
|
|
#
|
|
# [*purge_config*]
|
|
# (optional) Whether to set only the specified config options
|
|
# in the zaqar config.
|
|
# Defaults to false.
|
|
#
|
|
class zaqar(
|
|
$auth_strategy = 'keystone',
|
|
$admin_mode = $::os_service_default,
|
|
$unreliable = $::os_service_default,
|
|
$pooling = $::os_service_default,
|
|
$queue_pipeline = $::os_service_default,
|
|
$message_pipeline = $::os_service_default,
|
|
$claim_pipeline = $::os_service_default,
|
|
$subscription_pipeline = $::os_service_default,
|
|
$max_messages_post_size = $::os_service_default,
|
|
$package_name = $::zaqar::params::package_name,
|
|
$package_ensure = 'present',
|
|
$purge_config = false,
|
|
) inherits zaqar::params {
|
|
|
|
include ::zaqar::deps
|
|
|
|
resources { 'zaqar_config':
|
|
purge => $purge_config,
|
|
}
|
|
|
|
if $auth_strategy == 'keystone' {
|
|
include ::zaqar::keystone::authtoken
|
|
}
|
|
|
|
package { 'zaqar-common':
|
|
ensure => $package_ensure,
|
|
name => $package_name,
|
|
tag => ['openstack', 'zaqar-package'],
|
|
}
|
|
|
|
zaqar_config {
|
|
'DEFAULT/auth_strategy': value => $auth_strategy;
|
|
'DEFAULT/admin_mode': value => $admin_mode;
|
|
'DEFAULT/unreliable': value => $unreliable;
|
|
'DEFAULT/pooling': value => $pooling;
|
|
'storage/queue_pipeline': value => $queue_pipeline;
|
|
'storage/message_pipeline': value => $message_pipeline;
|
|
'storage/claim_pipeline': value => $claim_pipeline;
|
|
'storage/subscription_pipeline': value => $subscription_pipeline;
|
|
'transport/max_messages_post_size': value => $max_messages_post_size;
|
|
}
|
|
|
|
}
|