kitchen-puppet 1.0.37 → 1.37.1

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
  SHA1:
3
- metadata.gz: 0ec6e8a4314d3fd7eaaf678f211cf13069d04786
4
- data.tar.gz: fb7cece3c7762cbc6d018f87cb2e96da95c49af0
3
+ metadata.gz: 8f163d8d8f9248b899ed3991dcf8c0cbfa7ae3b7
4
+ data.tar.gz: e9e2a9ecc77628dfc8edcd4fe4da92e9cb73497c
5
5
  SHA512:
6
- metadata.gz: f3af7659697d626850a0af5ff1f896bc3c259f1cd344b53c14b79497711f4aa4cdc8faf38545469d619bde364f5a6fe8b0595bedbba077b8adb00045819d4e41
7
- data.tar.gz: e7d93b7ae91bf5a89aa1c841c9b4e24e5bf06e027860311ef16dcf3769ceab10dcf35d43c357ef8f2e2b831946f1fb850291bbd03a36d312ea4815650368142a
6
+ metadata.gz: e581c8f25b15a659dd7d3bd2560279020f2410a6ff64779660bc07f3cda724d5bc6094d42bf7856d1c2f4247ee9a63a287b69c20204832f8b95e83aaa48ec400
7
+ data.tar.gz: 36eca3d2f51e82df641fbf4b898ceec97d6da8d46f685b389dd1700d0573572d6191a86c159a68a158df1f8d5b7860d1d274100c36ac91698542faf0e70e3976
@@ -17,7 +17,11 @@ Gem::Specification.new do |s|
17
17
  s.require_paths = ['lib']
18
18
  s.rubyforge_project = '[none]'
19
19
  s.add_dependency 'test-kitchen', '~> 1.4'
20
- s.add_dependency 'net-ssh', '~> 2.0'
20
+ if RUBY_VERSION >= '2.0'
21
+ s.add_dependency 'net-ssh', '~> 3.0'
22
+ else
23
+ s.add_dependency 'net-ssh', '~> 2.9'
24
+ end
21
25
  s.description = <<-EOF
22
26
  == DESCRIPTION:
23
27
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '1.0.37'.freeze
5
+ VERSION = '1.37.1'.freeze
6
6
  end
7
7
  end
@@ -260,7 +260,11 @@ module Kitchen
260
260
  end
261
261
 
262
262
  def puppet_redhat_version
263
- config[:puppet_version] ? "-#{config[:puppet_version]}" : nil
263
+ if puppet_platform == 'amazon'
264
+ config[:puppet_version]
265
+ else
266
+ config[:puppet_version] ? "-#{config[:puppet_version]}" : nil
267
+ end
264
268
  end
265
269
 
266
270
  def puppet_noop_flag
@@ -63,6 +63,7 @@ module Kitchen
63
63
  default_config :chef_bootstrap_url, 'https://www.getchef.com/chef/install.sh'
64
64
  default_config :puppet_logdest, nil
65
65
  default_config :custom_install_command, nil
66
+ default_config :puppet_whitelist_exit_code, nil
66
67
 
67
68
  default_config :puppet_apply_command, nil
68
69
 
@@ -417,6 +418,9 @@ module Kitchen
417
418
  return if sandbox_path.nil?
418
419
  debug("Cleaning up local sandbox in #{sandbox_path}")
419
420
  FileUtils.rmtree(sandbox_path)
421
+ return if remove_repo.nil?
422
+ debug("Cleaning up remote sandbox: #{remove_repo}")
423
+ instance.remote_exec remove_repo
420
424
  end
421
425
 
422
426
  # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
@@ -537,7 +541,7 @@ module Kitchen
537
541
  puppet_verbose_flag,
538
542
  puppet_debug_flag,
539
543
  puppet_logdest_flag,
540
- remove_repo
544
+ puppet_whitelist_exit_code
541
545
  ].join(' ')
542
546
  info("Going to invoke puppet apply with: #{result}")
543
547
  result
@@ -674,7 +678,11 @@ module Kitchen
674
678
  end
675
679
 
676
680
  def puppet_redhat_version
677
- config[:puppet_version] ? "-#{config[:puppet_version]}" : nil
681
+ if puppet_platform == 'amazon'
682
+ config[:puppet_version]
683
+ else
684
+ config[:puppet_version] ? "-#{config[:puppet_version]}" : nil
685
+ end
678
686
  end
679
687
 
680
688
  def puppet_environment_flag
@@ -775,7 +783,11 @@ module Kitchen
775
783
  end
776
784
 
777
785
  def remove_repo
778
- remove_puppet_repo ? "; #{sudo('rm')} -rf /tmp/kitchen #{hiera_data_remote_path} #{hiera_eyaml_key_remote_path} #{puppet_dir}/* " : nil
786
+ remove_puppet_repo ? "#{sudo('rm')} -rf /tmp/kitchen #{hiera_data_remote_path} #{hiera_eyaml_key_remote_path} #{puppet_dir}/* " : nil
787
+ end
788
+
789
+ def puppet_whitelist_exit_code
790
+ config[:puppet_whitelist_exit_code] ? "; [ $? -eq #{config[:puppet_whitelist_exit_code]} ] && exit 0" : nil
779
791
  end
780
792
 
781
793
  def puppet_apt_repo
@@ -20,7 +20,7 @@ _for RH/Centos7 change to_ | "https://yum.puppetlabs.com/puppetlabs-release-pc1-
20
20
  puppet_apt_collections_repo | "http://apt.puppetlabs.com/puppetlabs-release-pc1-wheezy.deb" | apt collections repo
21
21
  _for Ubuntu15 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-pc1-jessie.deb" |
22
22
  puppet_coll_remote_path | "/opt/puppetlabs" | Server Installation location of a puppet collections install.
23
- puppet_detailed_exitcodes | nil | Provide transaction information via exit codes.
23
+ puppet_detailed_exitcodes | nil | Provide transaction information via exit codes. See `--detailed-exitcodes` section of `puppet help apply`
24
24
  manifests_path | | puppet repo manifests directory
25
25
  manifest | 'site.pp' | manifest for puppet apply to run
26
26
  modules_path | | puppet repo manifests directory
@@ -56,6 +56,7 @@ https_proxy | nil | use https proxy when installing puppet, packages and running
56
56
  puppet_logdest | nil | _Array_ of log destinations. Include 'console' if wanted
57
57
  custom_options | | custom options to add to puppet apply command.
58
58
  custom_install_command | nil | Custom shell command to be used at install stage. Can be multiline. See examples below.
59
+ puppet_whitelist_exit_code | nil | Whitelist exit code expected from puppet run. Intended to be used together with `puppet_detailed_exitcodes`.
59
60
 
60
61
 
61
62
  ## Puppet Apply Configuring Provisioner Options
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: 1.0.37
4
+ version: 1.37.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-07 00:00:00.000000000 Z
11
+ date: 2016-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.0'
40
+ version: '3.0'
41
41
  description: |+
42
42
  == DESCRIPTION:
43
43