puppet-ceilometer/manifests/agent/polling/rgw.pp
Takashi Kajinami 331b15d107 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iffdf359f0db141d80168e7bbaa0b10af31ae0ac6
2023-03-01 15:25:59 +09:00

33 lines
914 B
Puppet

# == Class: ceilometer::agent::polling::rgw
#
# Configure rgw parameters
#
# === Parameters
#
# [*access_key*]
# (Optional) Access key for Radosgw Admin.
# Defaults to $facts['os_service_default']
#
# [*secret_key*]
# (Optional) Secret key for Radosgw Admin.
# Defaults to $facts['os_service_default']
#
# [*implicit_tenants*]
# (Optional) Whether RGW uses implicit tenants or not.
# Defaults to $facts['os_service_default']
#
class ceilometer::agent::polling::rgw (
$access_key = $facts['os_service_default'],
$secret_key = $facts['os_service_default'],
$implicit_tenants = $facts['os_service_default'],
) {
include ceilometer::deps
ceilometer_config {
'rgw_admin_credentials/access_key': value => $access_key, secret => true;
'rgw_admin_credentials/secret_key': value => $secret_key, secret => true;
'rgw_client/implicit_tenants': value => $implicit_tenants;
}
}