700b5e4148
This is the prep work to migrate some common parameters from the api class to the base class, and implements basic functionality so that the base class provides consistent functionality in all modules. Change-Id: I0e20b135e8c29f1d27d39d2940d49ea30a1f512c
34 lines
673 B
Puppet
34 lines
673 B
Puppet
# == Class: barbican
|
|
#
|
|
# Barbican base package & configuration
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*package_ensure*]
|
|
# (Optional) Ensure state for package.
|
|
# Defaults to 'present'.
|
|
#
|
|
# [*purge_config*]
|
|
# (optional) Whether to set only the specified config options
|
|
# in the cinder config.
|
|
# Defaults to false.
|
|
#
|
|
class barbican(
|
|
$package_ensure = 'present',
|
|
$purge_config = false,
|
|
) {
|
|
|
|
include barbican::deps
|
|
include barbican::params
|
|
|
|
package { 'barbican':
|
|
ensure => $package_ensure,
|
|
name => $::barbican::params::common_package_name,
|
|
tag => ['openstack', 'barbican-package'],
|
|
}
|
|
|
|
resources { 'barbican_config':
|
|
purge => $purge_config,
|
|
}
|
|
}
|