Files
puppet-heat/manifests/clients/base.pp
Takashi Kajinami f50440a871 Prepare for voxpupuli-puppet-lint-plugins
Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.

Change-Id: I8c4962bc681c6666897e9725ddfd24893d5d7f4d
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-19 22:54:58 +09:00

50 lines
1.5 KiB
Puppet

# Define heat::clients::base
#
# common client configuration
#
# == Parameters
#
# [*section*]
# (Optional) Section name used to configure parameters.
# Defaults to $name.
#
# [*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'].
#
define heat::clients::base (
$section = $name,
$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'],
) {
include heat::deps
heat_config {
"${section}/endpoint_type": value => $endpoint_type;
"${section}/ca_file": value => $ca_file;
"${section}/cert_file": value => $cert_file;
"${section}/key_file": value => $key_file;
"${section}/insecure": value => $insecure;
}
}