Puppet Class: kubeadm::repo

Defined in:
modules/kubeadm/manifests/repo.pp

Overview

Parameters:

  • component (String) (defaults to: 'thirdparty/kubeadm-k8s-1-16')


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

class kubeadm::repo (
    String $component = 'thirdparty/kubeadm-k8s-1-16',
) {
    $repo_name = 'kubeadm-k8s-component-repo'
    apt::repository { $repo_name:
        uri        => 'http://apt.wikimedia.org/wikimedia',
        dist       => 'buster-wikimedia',
        components => $component,
        notify     => Exec['apt-get update'],
    }

    # this exec is defined in apt::repository
    Exec['apt-get update'] -> Package <| tag == 'kubeadm-k8s' |>
}