Puppet Class: kubeinstall::install::cleanup

Defined in:
manifests/install/cleanup.pp

Summary

Add cleanup script

Overview

Add cleanup script into /root/bin/kube-cleanup.sh

Examples:

include kubeinstall::install::cleanup


7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'manifests/install/cleanup.pp', line 7

class kubeinstall::install::cleanup {
  exec { '/root/bin-3059f76':
    command => 'mkdir -p /root/bin',
    path    => '/usr/bin:/bin',
    creates => '/root/bin',
  }

  file { '/root/bin/kube-cleanup.sh':
    ensure => file,
    source => 'puppet:///modules/kubeinstall/kube-cleanup.sh',
    owner  => 'root',
    mode   => '0700',
  }
}