
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: Ib4f33d08f9415b4a8533ec6b9b0e6d7637f4e289
35 lines
964 B
Puppet
35 lines
964 B
Puppet
# == Class: watcher::placement_client
|
|
#
|
|
# Configure the placement_client options
|
|
#
|
|
# === Parameters
|
|
#
|
|
# [*api_version*]
|
|
# (Optional) Microversion of placement API when using placement service.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
# [*interface*]
|
|
# (Optional) Type of endpoint when using placement service.
|
|
# 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::placement_client (
|
|
$api_version = $facts['os_service_default'],
|
|
$interface = $facts['os_service_default'],
|
|
$region_name = $facts['os_service_default'],
|
|
) {
|
|
|
|
include watcher::deps
|
|
include watcher::params
|
|
|
|
watcher_config {
|
|
'placement_client/api_version': value => $api_version;
|
|
'placement_client/interface': value => $interface;
|
|
'placement_client/region_name': value => $region_name;
|
|
}
|
|
}
|