puppet-barbican/manifests/init.pp
Takashi Kajinami 700b5e4148 Add general basic functionality to the base barbican class
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
2022-04-26 10:06:23 +09:00

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,
}
}