Puppet Class: kubeinstall::kubectl::completion

Defined in:
manifests/kubectl/completion.pp

Summary

A short summary of the purpose of this class

Overview

A description of what this class does

Examples:

include kubeinstall::kubectl::completion


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

class kubeinstall::kubectl::completion {
  include kubeinstall::system::completion

  # bash autocompletion
  exec { 'kubectl completion bash':
    command => 'kubectl completion bash > /root/.kube/completion.bash.inc',
    creates => '/root/.kube/completion.bash.inc',
    path    => '/bin:/usr/bin:/sbin:/usr/sbin',
  }

  file { '/etc/profile.d/kubectl.sh':
    ensure => file,
    source => 'puppet:///modules/kubeinstall/kubectl/profile.d.sh',
  }
}