puppet-magnum/manifests/cluster.pp
Takashi Kajinami 344a27abf7 Add support for [cluster] parameters and [cluster_template] parameters
This change introduces support managing parameters in the following
two sections.
 - [cluster]
 - [cluster_template]

Note that parameters for swarm and mesos are intentionally excluded
from this change, because mesos support is being deprecated and usage
of swarm would be not so popular as kubernetes these days.

Change-Id: I41ebc97d67eee5e5543bb48d878802e7777c47a8
2021-12-17 15:16:45 +09:00

41 lines
1.3 KiB
Puppet

# == Class: magnum::cluster
#
# Setup magnum cluster.
#
# === Parameters
#
# [*etcd_discovery_service_endpoint_format*]
# (optional) Url for etcd public discovery endpoint.
# Defaults to $::os_service_default
#
# [*nodes_affinity_policy*]
# (optional) Affinity policy for server group of cluster nodes.
# Defaults to $::os_service_default
#
# [*temp_cache_dir*]
# (optional) Explicitly specify the temporary directory to hold cached TLS
# certs.
# Defaults to $::os_service_default
#
# [*pre_delete_lb_timeout*]
# (optional) The timeout in seconds to wait for the load balancers to be
# deleted.
# Defaults to $::os_service_default
#
class magnum::cluster (
$etcd_discovery_service_endpoint_format = $::os_service_default,
$nodes_affinity_policy = $::os_service_default,
$temp_cache_dir = $::os_service_default,
$pre_delete_lb_timeout = $::os_service_default,
) {
include magnum::deps
magnum_config {
'cluster/etcd_discovery_service_endpoint_format': value => $etcd_discovery_service_endpoint_format;
'cluster/nodes_affinity_policy': value => $nodes_affinity_policy;
'cluster/temp_cache_dir': value => $temp_cache_dir;
'cluster/pre_delete_lb_timeout': value => $pre_delete_lb_timeout;
}
}