Puppet Class: calico::cni

Defined in:
modules/calico/manifests/cni.pp

Overview

Parameters:

  • kubeconfig (Any)


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/calico/manifests/cni.pp', line 5

class calico::cni($kubeconfig) {
    require ::calico

    package { 'cni':
        ensure => $::calico::cni_version,
    }

    package { 'calico-cni':
        ensure => $::calico::calico_cni_version,
    }

    $etcd_endpoints = $::calico::etcd_endpoints

    file { ['/etc/cni', '/etc/cni/net.d']:
        ensure => directory,
        owner  => 'root',
        group  => 'root',
        mode   => '0755',
    }

    file { '/etc/cni/net.d/10-calico.conf':
        content => template('calico/cni.conf.erb'),
        owner   => 'root',
        group   => 'root',
        mode    => '0755',
        before  => Package['calico-cni'],
    }
}