Puppet Class: kubeinstall::params
- Inherited by:
-
kubeinstall
kubeinstall::repos::crio
- Defined in:
- manifests/params.pp
Summary
A short summary of the purpose of this classOverview
A description of what this class does
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'manifests/params.pp', line 7
class kubeinstall::params {
$apiserver_bind_port = 6443
$docker_socket = '/var/run/dockershim.sock'
$crio_socket = '/var/run/crio/crio.sock'
$service_dns_domain = 'cluster.local'
$service_cidr = '10.96.0.0/12'
$service_node_port_range = '30000-32767'
$dashboard_configuration = 'https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml'
# directory where to store static manifests under folder 'manifests'
$manifests_directory = '/etc/kubectl'
# Puppet > 6
if 'distro' in $facts['os'] {
# centos stream
$centos_stream = $facts['os']['release']['major'] ? {
'6' => false,
'7' => false,
default => $facts['os']['distro']['id'] ? {
'CentOSStream' => true,
default => false,
},
}
}
else {
$centos_stream = $facts['os']['release']['full'] ? {
# for CentOS Stream 8 it is just '8' but for CentOS Linux 8 it is 8.x.x
'8' => true,
default => false,
}
}
}
|