e7200ad4e0
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: I60600b673171f0e616d48680001dbc1e17c2a3aa
27 lines
852 B
Puppet
27 lines
852 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 $facts['os_service_default']
|
|
#
|
|
# [*kubernetes_default_network_driver*]
|
|
# (optional) Default network driver for kubernetes.
|
|
# Defaults to $facts['os_service_default']
|
|
#
|
|
class magnum::cluster_template (
|
|
$kubernetes_allowed_network_drivers = $facts['os_service_default'],
|
|
$kubernetes_default_network_driver = $facts['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;
|
|
}
|
|
}
|