File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ fixtures:
33 stdlib : ' puppetlabs-stdlib'
44 apt : ' puppetlabs-apt'
55 epel : ' stahnma-epel'
6+ wget : ' maestrodev-wget'
67 symlinks :
78 kubernetes : " #{source_dir}"
Original file line number Diff line number Diff line change 7171 require => Exec[' Create kube dns service account' ],
7272 }
7373
74- if $install_dashboard and $kubernetes_version =~ /1[.]8 [.]\d/ {
74+ if $install_dashboard and $kubernetes_version =~ /1[.](8|9) [.]\d/ {
7575 exec { 'Install Kubernetes dashboard' :
7676 command => ' kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml' ,
7777 onlyif => ' kubectl get nodes' ,
Original file line number Diff line number Diff line change 55 $kubernetes_package_version = $kubernetes::kubernetes_package_version,
66 $container_runtime = $kubernetes::container_runtime,
77 $cni_version = $kubernetes::cni_version,
8+
89) {
910
1011 $kube_packages = [' kubelet' , ' kubectl' ]
1112
13+ case $kubernetes_package_version {
14+ /1[.]9[.]\d/: {
15+ $cri_source = ' https://github.com/kubernetes-incubator/cri-containerd/releases/download/v1.0.0-beta.0/cri-containerd-1.0.0-beta.0.linux-amd64.tar.gz'
16+ $cri_archive = ' cri-containerd-1.0.0-beta.0.linux-amd64.tar.gz'
17+ }
18+ default: {
19+ $cri_source = ' https://github.com/kubernetes-incubator/cri-containerd/releases/download/v1.0.0-alpha.1/cri-containerd-1.0.0-alpha.1.tar.gz'
20+ $cri_archive = ' cri-containerd-1.0.0-alpha.1.tar.gz'
21+ }
22+ }
23+
1224 if $container_runtime == ' docker' {
1325 case $::osfamily {
1426 ' Debian' : {
3345
3446 elsif $container_runtime == ' cri_containerd' {
3547 wget::fetch { 'wget cri-containerd' :
36- source => ' https://github.com/kubernetes-incubator/cri-containerd/releases/download/v1.0.0-alpha.1/cri-containerd-1.0.0-alpha.1.tar.gz ' ,
48+ source => $cri_source ,
3749 destination => ' /' ,
3850 timeout => 0,
3951 verbose => false ,
4052 }
4153
42- -> archive { ' cri-containerd-1.0.0-alpha.1.tar.gz ' :
54+ -> archive { $cri_archive :
4355 ensure => present ,
44- path => ' /cri-containerd-1.0.0-alpha.1.tar.gz ' ,
56+ path => " / ${cri_archive} " ,
4557 extract => true ,
4658 extract_command => ' tar xfz %s --strip-components=1' ,
4759 extract_path => ' /' ,
Original file line number Diff line number Diff line change 1010 "dependencies" : [
1111 {"name" :" puppetlabs-stdlib" ,"version_requirement" :" >= 4.19.0 < 5.0.0" },
1212 {"name" :" puppetlabs-apt" ,"version_requirement" :" >= 4.1.0 < 4.3.0" },
13- {"name" :" stahnma-epel" ,"version_requirement" :" >= 1.2.2 < 1.3.0" }
13+ {"name" :" stahnma-epel" ,"version_requirement" :" >= 1.2.2 < 1.3.0" },
14+ {"name" :" maestrodev-wget" }
1415 ],
1516 "data_provider" : null ,
1617 "operatingsystem_support" : [
You can’t perform that action at this time.
0 commit comments