puppet-barbican/manifests/quota.pp
ZhongShengping e12dfaefd7 Add hooks for external install & svc management
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: If0175f5719ec72871febcec04785d63f56fd3d2b
2016-11-25 17:44:49 +08:00

45 lines
1.3 KiB
Puppet

# == Class: barbican::quota
#
# Sets up Barbican API server quotas
#
# === Parameters
#
# [*quota_secrets*]
# (optional) default number of secrets allowed per project
# Defaults to $::os_service_default
#
# [*quota_orders*]
# (optional) default number of orders allowed per project
# Defaults to $::os_service_default
#
# [*quota_containers*]
# (optional) default number of containers allowed per project
# Defaults to $::os_service_default
#
# [*quota_consumers*]
# (optional) default number of consumers allowed per project
# Defaults to $::os_service_default
#
# [*quota_cas*]
# (optional) default number of CAs allowed per project
# Defaults to $::os_service_default
#
class barbican::quota (
$quota_secrets = $::os_service_default,
$quota_orders = $::os_service_default,
$quota_containers = $::os_service_default,
$quota_consumers = $::os_service_default,
$quota_cas = $::os_service_default,
) {
include ::barbican::deps
barbican_config {
'quotas/quota_secrets': value => $quota_secrets;
'quotas/quota_orders': value => $quota_orders;
'quotas/quota_containers': value => $quota_containers;
'quotas/quota_consumers': value => $quota_consumers;
'quotas/quota_cas': value => $quota_cas;
}
}