Puppet Class: profile::toolforge::k8s::client

Defined in:
modules/profile/manifests/toolforge/k8s/client.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
# File 'modules/profile/manifests/toolforge/k8s/client.pp', line 1

class profile::toolforge::k8s::client (
) {
    class { '::profile::wmcs::kubeadm::client': }
    contain '::profile::wmcs::kubeadm::client'

    package { 'toolforge-webservice':
        ensure => latest,
    }

    $extra_links = ['/usr/local/bin/toolforge-webservice']

    # Legacy locations for the entry point script from webservice
    # that are probably still hardcoded in some Tools.
    $legacy_links = debian::codename::le('buster') ? {
        true =>  [
            '/usr/local/bin/webservice2',
            '/usr/local/bin/webservice',
        ],
        false => [],
    }

    file { $extra_links + $legacy_links:
        ensure => link,
        target => '/usr/bin/webservice',
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
    }
}