puppet-barbican/manifests/quota.pp
Takashi Kajinami 729f5d286c Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I6e76d095bb0f78ef4962f1150da94e4d4153a374
2023-03-01 16:51:25 +09: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 $facts['os_service_default']
#
# [*quota_orders*]
# (optional) default number of orders allowed per project
# Defaults to $facts['os_service_default']
#
# [*quota_containers*]
# (optional) default number of containers allowed per project
# Defaults to $facts['os_service_default']
#
# [*quota_consumers*]
# (optional) default number of consumers allowed per project
# Defaults to $facts['os_service_default']
#
# [*quota_cas*]
# (optional) default number of CAs allowed per project
# Defaults to $facts['os_service_default']
#
class barbican::quota (
$quota_secrets = $facts['os_service_default'],
$quota_orders = $facts['os_service_default'],
$quota_containers = $facts['os_service_default'],
$quota_consumers = $facts['os_service_default'],
$quota_cas = $facts['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;
}
}