kitchen-puppet 3.5.2 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c75e7508998922548a42ffda9cd1cc63191ed9dc25e59b1a038aadb7f55750c9
4
- data.tar.gz: 329b3b11b79f304f5bccda25c303bf1c222f8331c86074aaf0f3d108be617fb0
3
+ metadata.gz: 778238b260d5bf808d062fce6b9d04691cbdc163bccb3415c1476a177dcb4a5c
4
+ data.tar.gz: 150c20b4aacc250e66b7e5170a409f402539da21c3673a01ead03cc518a1bb05
5
5
  SHA512:
6
- metadata.gz: 4895832d1bf85472efded1f7edb6d422f5afa44a934ceb3f348217ae34811c049c8884e3fb400431b2f1acd026e11b31424e0ebc7f6934808c4d5d0b84955f10
7
- data.tar.gz: '09c3bf9f402734a4f2063576628e638d488174ecf2a1b6255c9dfcd5b4fa5c0fa2676218c4b7d6ba5ebfa79ab7f5abb797b8b947c3b6a0ca675dcbc544e2ce81'
6
+ metadata.gz: 31ea049e3e22598a59ecc0978d3a989bfa884a50cee32e9a1a8a132dbf19870caea9ef577b3eaa267eb115436901acfd6909b69ee8dff645bbb9d2f880bf6fa3
7
+ data.tar.gz: 0eb157d3efc15350f59b73272be43f5a940e0121ccfcad3c7a961ef63211b594219b6ac88d555a3356dc1449ee57b09713cbda57f00ad0e1f34843a443b435d9
@@ -47,7 +47,7 @@ module Kitchen
47
47
  ::R10K::Git::Cache.settings[:cache_root] = '.r10k/git'
48
48
  ::R10K::Forge::ModuleRelease.settings[:cache_root] = '.r10k/cache'
49
49
 
50
- pf = ::R10K::Puppetfile.new(nil, path, puppetfile)
50
+ pf = ::R10K::Puppetfile.new("", path, puppetfile)
51
51
  pf.load
52
52
  pf.modules.map(&:sync)
53
53
  end
@@ -215,6 +215,7 @@ module Kitchen
215
215
  #{custom_pre_install_command}
216
216
  if [ ! $(which puppet) ]; then
217
217
  #{sudo('apt-get')} -y install wget
218
+ #{sudo('apt-get')} -y install apt-transport-https
218
219
  #{sudo('wget')} #{wget_proxy_parm} #{puppet_apt_repo}
219
220
  #{sudo('dpkg')} -i #{puppet_apt_repo_file}
220
221
  #{update_packages_debian_cmd}
@@ -248,12 +249,13 @@ module Kitchen
248
249
  info("Installing puppet on #{puppet_platform}")
249
250
  info('Powershell is not recognised by core test-kitchen assuming it is present') unless powershell_shell?
250
251
  <<-INSTALL
252
+ #{custom_pre_install_command}
251
253
  if(Get-Command puppet -ErrorAction 0) { return; }
252
- $architecture = if( [Environment]::Is64BitOperatingSystem ) { '-x64' } else { '' }
254
+ $architecture = if( [Environment]::Is64BitOperatingSystem ) { 'x64' } else { 'x86' }
253
255
  if( '#{puppet_windows_version}' -eq 'latest' ) {
254
256
  $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-${architecture}-latest.msi"
255
- } elseif( '#{puppet_windows_version}' -like '5.*' ) {
256
- $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet5/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
257
+ } elseif( '#{puppet_windows_version}' -match '(\\d)\\.' ) {
258
+ $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet$($Matches[1])/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
257
259
  } else {
258
260
  $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-#{puppet_windows_version}${architecture}.msi"
259
261
  }
@@ -263,8 +265,8 @@ module Kitchen
263
265
  Write-Host "Installer failed."
264
266
  Exit 1
265
267
  }
266
-
267
268
  #{install_busser}
269
+ #{custom_install_command}
268
270
  INSTALL
269
271
  else
270
272
  info('Installing puppet, will try to determine platform os')
@@ -280,6 +282,7 @@ module Kitchen
280
282
  #{install_puppet_yum_repo}
281
283
  else
282
284
  #{sudo('apt-get')} -y install wget
285
+ #{sudo('apt-get')} -y install apt-transport-https
283
286
  #{sudo('wget')} #{wget_proxy_parm} #{puppet_apt_repo}
284
287
  #{sudo('dpkg')} -i #{puppet_apt_repo_file}
285
288
  #{update_packages_debian_cmd}
@@ -312,6 +315,7 @@ module Kitchen
312
315
  if [ ! -d "#{config[:puppet_coll_remote_path]}" ]; then
313
316
  if [ ! -f "#{config[:puppet_apt_collections_repo]}" ]; then
314
317
  #{sudo('apt-get')} -y install wget
318
+ #{sudo('apt-get')} -y install apt-transport-https
315
319
  #{sudo('wget')} #{wget_proxy_parm} #{config[:puppet_apt_collections_repo]}
316
320
  fi
317
321
  #{sudo('dpkg')} -i #{puppet_apt_coll_repo_file}
@@ -346,14 +350,15 @@ module Kitchen
346
350
  info("Installing Puppet Collections on #{puppet_platform}")
347
351
  info('Powershell is not recognised by core test-kitchen assuming it is present') unless powershell_shell?
348
352
  <<-INSTALL
353
+ #{custom_pre_install_command}
349
354
  if(Get-Command puppet -ErrorAction 0) { return; }
350
355
  $architecture = if( [Environment]::Is64BitOperatingSystem ) { 'x64' } else { 'x86' }
351
356
  if( '#{puppet_windows_version}' -eq 'latest' ) {
352
357
  $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-${architecture}-latest.msi"
353
- } elseif( '#{puppet_windows_version}' -like '5.*' ) {
354
- $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet5/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
358
+ } elseif( '#{puppet_windows_version}' -match '(\\d)\\.' ) {
359
+ $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet$($Matches[1])/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
355
360
  } else {
356
- $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-#{puppet_windows_version}${architecture}.msi"
361
+ $MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
357
362
  }
358
363
  Invoke-WebRequest $MsiUrl -UseBasicParsing -OutFile "C:/puppet-agent.msi" #{posh_proxy_parm}
359
364
  $process = Start-Process -FilePath msiexec.exe -Wait -PassThru -ArgumentList '/qn', '/norestart', '/i', 'C:\\puppet-agent.msi'
@@ -361,8 +366,8 @@ module Kitchen
361
366
  Write-Host "Installer failed."
362
367
  Exit 1
363
368
  }
364
-
365
369
  #{install_busser}
370
+ #{custom_install_command}
366
371
  INSTALL
367
372
  else
368
373
  info('Installing Puppet Collections, will try to determine platform os')
@@ -378,6 +383,7 @@ module Kitchen
378
383
  #{sudo_env('yum')} -y --nogpgcheck install puppet-agent#{puppet_redhat_version}
379
384
  else
380
385
  #{sudo('apt-get')} -y install wget
386
+ #{sudo('apt-get')} -y install apt-transport-https
381
387
  #{sudo('wget')} #{wget_proxy_parm} #{config[:puppet_apt_collections_repo]}
382
388
  #{sudo('dpkg')} -i #{puppet_apt_coll_repo_file}
383
389
  #{sudo('apt-get')} update
@@ -1111,6 +1117,15 @@ module Kitchen
1111
1117
  case puppet_platform
1112
1118
  when 'ubuntu'
1113
1119
  case platform_version
1120
+ when '20.04'
1121
+ # focal Repo
1122
+ 'https://apt.puppetlabs.com/puppet-release-focal.deb'
1123
+ when '18.04'
1124
+ # bionic Repo
1125
+ 'https://apt.puppetlabs.com/puppet-release-bionic.deb'
1126
+ when '16.04'
1127
+ # xenial Repo
1128
+ 'https://apt.puppetlabs.com/puppet-release-xenial.deb'
1114
1129
  when '14.10'
1115
1130
  # Utopic Repo
1116
1131
  'https://apt.puppetlabs.com/puppetlabs-release-utopic.deb'
@@ -1126,6 +1141,12 @@ module Kitchen
1126
1141
  end
1127
1142
  when 'debian'
1128
1143
  case platform_version.gsub(/\..*/, '')
1144
+ when '10'
1145
+ # Debian buster
1146
+ 'https://apt.puppetlabs.com/puppet-tools-release-buster.deb'
1147
+ when '9'
1148
+ # Debian xenial
1149
+ 'https://apt.puppetlabs.com/puppet-tools-release-stretch.deb'
1129
1150
  when '8'
1130
1151
  # Debian Jessie
1131
1152
  'https://apt.puppetlabs.com/puppetlabs-release-jessie.deb'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '3.5.2'.freeze
5
+ VERSION = '3.6.0'.freeze
6
6
  end
7
7
  end
@@ -187,11 +187,11 @@ To override a setting at the suite-level, specify the setting name under the sui
187
187
 
188
188
  It can be beneficial to keep different Puppet layouts for different suites. Rather than having to specify the manifest, modules, etc for each suite, you can create the following directory structure and they will automatically be found:
189
189
 
190
- $kitchen_root/puppet/$suite_name/manifests
191
- $kitchen_root/puppet/$suite_name/modules
192
- $kitchen_root/puppet/$suite_name/hiera
193
- $kitchen_root/puppet/$suite_name/hiera.yaml
194
- $kitchen_root/puppet/$suite_name/Puppetfile
190
+ $kitchen_root/$suite_name/puppet/manifests
191
+ $kitchen_root/$suite_name/puppet/modules
192
+ $kitchen_root/$suite_name/puppet/hiera
193
+ $kitchen_root/$suite_name/puppet/hiera.yaml
194
+ $kitchen_root/$suite_name/puppet/Puppetfile
195
195
 
196
196
  ### Puppet Version
197
197
  When specifying a puppet version, you must use this format: "3.6.2-1puppetlabs1". I have
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.2
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2022-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  requirements: []
98
- rubygems_version: 3.0.3
98
+ rubygems_version: 3.2.21
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: puppet provisioner for test-kitchen