puppet-heat/manifests/clients/cinder.pp
Takashi Kajinami da45ce8a21 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib395d70d0d528adfef6600f67f9cd6bb238f8206
2023-03-02 11:31:36 +09:00

55 lines
1.5 KiB
Puppet

# Class heat::clients::cinder
#
# cinder client configuration
#
# == Parameters
#
# [*endpoint_type*]
# (Optional) Type of endpoint in Identity service catalog to use for
# communication with the OpenStack service.
# Defaults to $facts['os_service_default'].
#
# [*ca_file*]
# (Optional) Optional CA cert file to use in SSL communications.
# Defaults to $facts['os_service_default'].
#
# [*cert_file*]
# (Optional) Optional PEM-formatted certificate chain file.
# Defaults to $facts['os_service_default'].
#
# [*key_file*]
# (Optional) Optional PEM-formatted file that contains the private key.
# Defaults to $facts['os_service_default'].
#
# [*insecure*]
# (Optional) If set, then the server's certificate will not be verified.
# Defaults to $facts['os_service_default'].
#
# [*http_log_debug*]
# (Optional) Allow client's debug log output.
# Defaults to $facts['os_service_default'].
#
class heat::clients::cinder (
$endpoint_type = $facts['os_service_default'],
$ca_file = $facts['os_service_default'],
$cert_file = $facts['os_service_default'],
$key_file = $facts['os_service_default'],
$insecure = $facts['os_service_default'],
$http_log_debug = $facts['os_service_default'],
) {
include heat::deps
heat::clients::base { 'clients_cinder':
endpoint_type => $endpoint_type,
ca_file => $ca_file,
cert_file => $cert_file,
key_file => $key_file,
insecure => $insecure,
}
heat_config {
'clients_cinder/http_log_debug': value => $http_log_debug;
}
}