Puppet Class: profile::toolforge::k8s::etcd

Defined in:
modules/profile/manifests/toolforge/k8s/etcd.pp

Overview

Parameters:

  • peer_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::toolforge::k8s::etcd_nodes', {default_value => ['localhost']}))
  • checker_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::toolforge::checker_hosts', {default_value => ['tools-checker-03.tools.eqiad.wmflabs']}))
  • control_nodes (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::toolforge::k8s::control_nodes',{default_value => ['localhost']}))
  • bootstrap (Boolean) (defaults to: lookup('profile::etcd::cluster_bootstrap', {default_value => false}))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/profile/manifests/toolforge/k8s/etcd.pp', line 1

class profile::toolforge::k8s::etcd (
    Array[Stdlib::Fqdn] $peer_hosts    = lookup('profile::toolforge::k8s::etcd_nodes',   {default_value => ['localhost']}),
    Array[Stdlib::Fqdn] $checker_hosts = lookup('profile::toolforge::checker_hosts',     {default_value => ['tools-checker-03.tools.eqiad.wmflabs']}),
    Array[Stdlib::Fqdn] $control_nodes = lookup('profile::toolforge::k8s::control_nodes',{default_value => ['localhost']}),
    Boolean             $bootstrap     = lookup('profile::etcd::cluster_bootstrap',      {default_value => false}),
) {
    class { '::profile::wmcs::kubeadm::etcd':
        peer_hosts    => $peer_hosts,
        checker_hosts => $checker_hosts,
        control_nodes => $control_nodes,
        bootstrap     => $bootstrap,
    }
    contain '::profile::wmcs::kubeadm::etcd'
}