Puppet Class: kubeinstall::install::helm_binary
- Defined in:
- manifests/install/helm_binary.pp
Summary
Helm client installationOverview
Helm client installation
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/install/helm_binary.pp', line 7
class kubeinstall::install::helm_binary (
String $version = $kubeinstall::helm_version,
){
$archive = "helm-${version}-linux-amd64.tar.gz"
$source = "https://get.helm.sh/helm-v${version}-linux-amd64.tar.gz"
archive { $archive:
path => "/tmp/${archive}",
source => $source,
extract => true,
extract_command => 'tar xfz %s --strip-components=1 -C /usr/local/bin/ linux-amd64/helm',
extract_path => '/usr/local/bin',
cleanup => true,
creates => '/usr/local/bin/helm',
}
file { '/usr/local/bin/helm':
owner => 'root',
group => 'root',
mode => '0755',
require => Archive[$archive],
}
}
|