Puppet Class: kubeadm::docker

Defined in:
modules/kubeadm/manifests/docker.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
31
32
# File 'modules/kubeadm/manifests/docker.pp', line 1

class kubeadm::docker (
) {
    require ::kubeadm::repo

    $packages = [
        'docker-ce',
        'docker-ce-cli',
    ]

    package { $packages:
        ensure => 'present',
        tag    => 'kubeadm-k8s',
    }

    # I think this is unused? It is called for specifically in Kubernetes docs.  Don't know why.
    file { '/etc/systemd/system/docker.service.d':
        ensure => 'directory',
    }

    service { 'docker':
        ensure => 'running'
    }

    file { '/etc/docker/daemon.json':
        source  => 'puppet:///modules/toolforge/docker-config.json',
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        notify  => Service['docker'],
        require => Package['docker-ce'],
    }
}