Puppet Class: profile::wmcs::paws::k8s::control

Defined in:
modules/profile/manifests/wmcs/paws/k8s/control.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'modules/profile/manifests/wmcs/paws/k8s/control.pp', line 1

class profile::wmcs::paws::k8s::control (
) {
    class { '::profile::wmcs::kubeadm::control': }
    contain '::profile::wmcs::kubeadm::control'

    # To avoid confusion, we use the same helm binary that Toolforge
    # uses, which is imported to the kubeadm component from upstream
    # repositories directly (named helm, not helm3), instead of using
    # the packages WMF's serviceops team builds locally.
    package { 'helm3':
        ensure => absent,
    }

    # To facilitate deploying manifests directly from the repo to k8s.
    # This would allow paws admins more flexibility for k8s-controlled elements
    git::clone { 'paws-git':
        ensure    => 'latest',
        directory => '/srv/git/paws',
        branch    => 'master',
        origin    => 'https://github.com/toolforge/paws.git'
    }

    labs_lvm::volume { 'docker':
        size      => '60%FREE',
        mountat   => '/var/lib/docker',
        mountmode => '711',
    } -> labs_lvm::volume { 'etcd-disk':
        mountat => '/var/lib/etcd',
    }
}