|
22 | 22 | let(:params) do
|
23 | 23 | {
|
24 | 24 | 'container_runtime' => 'docker',
|
25 |
| - 'kubernetes_apt_location' => 'http://apt.kubernetes.io', |
26 |
| - 'kubernetes_apt_release' => 'kubernetes-xenial', |
27 |
| - 'kubernetes_apt_repos' => 'main', |
| 25 | + 'kubernetes_apt_location' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/', |
| 26 | + 'kubernetes_apt_release' => ' /', |
| 27 | + 'kubernetes_apt_repos' => ' ', |
28 | 28 | 'kubernetes_key_id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB',
|
29 |
| - 'kubernetes_key_source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg', |
| 29 | + 'kubernetes_key_source' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key', |
30 | 30 | 'kubernetes_yum_baseurl' => 'https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64',
|
31 | 31 | 'kubernetes_yum_gpgkey' => 'https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg',
|
32 |
| - 'docker_apt_location' => 'https://download.docker.com/linux/ubuntu', |
| 32 | + 'docker_apt_location' => 'https://download.docker.com/linux/debian', |
33 | 33 | 'docker_apt_release' => 'xenial',
|
34 | 34 | 'docker_apt_repos' => 'main',
|
35 |
| - 'docker_yum_baseurl' => 'https://download.docker.com/linux/centos/7/x86_64/stable', |
36 |
| - 'docker_yum_gpgkey' => 'https://download.docker.com/linux/centos/gpg', |
| 35 | + 'docker_yum_baseurl' => 'https://download.docker.com/linux/rhel/8/x86_64/stable', |
| 36 | + 'docker_yum_gpgkey' => 'https://download.docker.com/linux/rhel/gpg', |
37 | 37 | 'docker_key_id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88',
|
38 |
| - 'docker_key_source' => 'https://download.docker.com/linux/ubuntu/gpg', |
| 38 | + 'docker_key_source' => 'https://download.docker.com/linux/debian/gpg', |
39 | 39 | 'containerd_install_method' => 'archive',
|
40 | 40 | 'create_repos' => true,
|
41 | 41 | 'manage_docker' => true
|
|
45 | 45 | it {
|
46 | 46 | expect(subject).to contain_apt__source('kubernetes').with(
|
47 | 47 | ensure: 'present',
|
48 |
| - location: 'http://apt.kubernetes.io', |
49 |
| - repos: 'main', |
50 |
| - release: 'kubernetes-xenial', |
51 |
| - key: { 'id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB', 'source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg' }, |
| 48 | + location: 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/', |
| 49 | + repos: ' ', |
| 50 | + release: ' /', |
| 51 | + key: { 'name' => 'kubernetes-apt-keyring.gpg', 'source' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key' }, |
52 | 52 | )
|
53 | 53 | }
|
54 | 54 |
|
55 | 55 | it {
|
56 | 56 | expect(subject).to contain_apt__source('docker').with(
|
57 | 57 | ensure: 'present',
|
58 |
| - location: 'https://download.docker.com/linux/ubuntu', |
| 58 | + location: 'https://download.docker.com/linux/debian', |
59 | 59 | repos: 'main',
|
60 | 60 | release: 'xenial',
|
61 |
| - key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/ubuntu/gpg' }, |
| 61 | + key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/debian/gpg' }, |
62 | 62 | )
|
63 | 63 | }
|
64 | 64 | end
|
|
83 | 83 | let(:params) do
|
84 | 84 | {
|
85 | 85 | 'container_runtime' => 'cri_containerd',
|
86 |
| - 'kubernetes_apt_location' => 'http://apt.kubernetes.io', |
87 |
| - 'kubernetes_apt_release' => 'kubernetes-xenial', |
88 |
| - 'kubernetes_apt_repos' => 'main', |
| 86 | + 'kubernetes_apt_location' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/', |
| 87 | + 'kubernetes_apt_release' => ' /', |
| 88 | + 'kubernetes_apt_repos' => ' ', |
89 | 89 | 'kubernetes_key_id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB',
|
90 |
| - 'kubernetes_key_source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg', |
| 90 | + 'kubernetes_key_source' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key', |
91 | 91 | 'kubernetes_yum_baseurl' => 'https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64',
|
92 | 92 | 'kubernetes_yum_gpgkey' => 'https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg',
|
93 |
| - 'docker_apt_location' => 'https://download.docker.com/linux/ubuntu', |
| 93 | + 'docker_apt_location' => 'https://download.docker.com/linux/debian', |
94 | 94 | 'docker_apt_release' => 'xenial',
|
95 | 95 | 'docker_apt_repos' => 'main',
|
96 |
| - 'docker_yum_baseurl' => 'https://download.docker.com/linux/centos/7/x86_64/stable', |
97 |
| - 'docker_yum_gpgkey' => 'https://download.docker.com/linux/centos/gpg', |
| 96 | + 'docker_yum_baseurl' => 'https://download.docker.com/linux/rhel/8/x86_64/stable', |
| 97 | + 'docker_yum_gpgkey' => 'https://download.docker.com/linux/rhel/gpg', |
98 | 98 | 'docker_key_id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88',
|
99 |
| - 'docker_key_source' => 'https://download.docker.com/linux/ubuntu/gpg', |
| 99 | + 'docker_key_source' => 'https://download.docker.com/linux/debian/gpg', |
100 | 100 | 'containerd_install_method' => 'package',
|
101 | 101 | 'create_repos' => true,
|
102 | 102 | 'manage_docker' => true
|
|
106 | 106 | it {
|
107 | 107 | expect(subject).to contain_apt__source('kubernetes').with(
|
108 | 108 | ensure: 'present',
|
109 |
| - location: 'http://apt.kubernetes.io', |
110 |
| - repos: 'main', |
111 |
| - release: 'kubernetes-xenial', |
112 |
| - key: { 'id' => '54A647F9048D5688D7DA2ABE6A030B21BA07F4FB', 'source' => 'https://packages.cloud.google.com/apt/doc/apt-key.gpg' }, |
| 109 | + location: 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/', |
| 110 | + repos: ' ', |
| 111 | + release: ' /', |
| 112 | + key: { 'name' => 'kubernetes-apt-keyring.gpg', 'source' => 'https://pkgs.k8s.io/core:/stable:/v1.32/deb/Release.key' }, |
113 | 113 | )
|
114 | 114 | }
|
115 | 115 |
|
116 | 116 | it {
|
117 | 117 | expect(subject).to contain_apt__source('docker').with(
|
118 | 118 | ensure: 'present',
|
119 |
| - location: 'https://download.docker.com/linux/ubuntu', |
| 119 | + location: 'https://download.docker.com/linux/debian', |
120 | 120 | repos: 'main',
|
121 | 121 | release: 'xenial',
|
122 |
| - key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/ubuntu/gpg' }, |
| 122 | + key: { 'id' => '9DC858229FC7DD38854AE2D88D81803C0EBFCD88', 'source' => 'https://download.docker.com/linux/debian/gpg' }, |
123 | 123 | )
|
124 | 124 | }
|
125 | 125 | end
|
|
0 commit comments