puppet-magnum/manifests/cluster_template.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

27 lines
824 B
Puppet

# == Class: magnum::cluster_template
#
# Setup magnum cluster_template.
#
# === Parameters
#
# [*kubernetes_allowed_network_drivers*]
# (optional) Allowed network drivers for kubernetes cluster-templates.
# Defaults to $::os_service_default
#
# [*kubernetes_default_network_driver*]
# (optional) Default network driver for kubernetes.
# Defaults to $::os_service_default
#
class magnum::cluster_template (
$kubernetes_allowed_network_drivers = $::os_service_default,
$kubernetes_default_network_driver = $::os_service_default,
) {
include magnum::deps
magnum_config {
'cluster_template/kubernetes_allowed_network_drivers': value => join(any2array($kubernetes_allowed_network_drivers), ',');
'cluster_template/kubernetes_default_network_driver': value => $kubernetes_default_network_driver;
}
}