puppet-watcher/manifests/keystone_client.pp
Takashi Kajinami f6ab996e63 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib4f33d08f9415b4a8533ec6b9b0e6d7637f4e289
2023-03-02 12:46:14 +09:00

29 lines
727 B
Puppet

# == Class: watcher::keystone_client
#
# Configure the keystone_client options
#
# === Parameters
#
# [*endpoint_type*]
# (Optional) Type of endpoint to use in keystoneclient.
# Defaults to $facts['os_service_default']
#
# [*region_name*]
# (Optional) Region in Identify service catalog to use for communication
# with the OpenStack service.
# Defaults to $facts['os_service_default'].
#
class watcher::keystone_client (
$endpoint_type = $facts['os_service_default'],
$region_name = $facts['os_service_default'],
) {
include watcher::deps
include watcher::params
watcher_config {
'keystone_client/endpoint_type': value => $endpoint_type;
'keystone_client/region_name': value => $region_name;
}
}