kitchen-puppet 3.1.4 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kitchen-puppet.gemspec +1 -1
- data/lib/kitchen-puppet/version.rb +1 -1
- data/lib/kitchen/provisioner/puppet_agent.rb +17 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a066a8ea421e32bbec8636de2f3d5c43f04a8f6e
|
4
|
+
data.tar.gz: bd2853a80ff37ca0fe4962c03673b2977fb78717
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bbaf3e572fdd6a7e4229b5af9c1931a08955ec4c25b5e2300218b9e87028d4f7f0cdf09c914a0c0fefdd06afd9f97a79f1c73855f22dd3f6aae24700db0ad6f
|
7
|
+
data.tar.gz: a5f9977be5a4ea2541bd89c63ec49e9ce73aa765c6180a7f19aec0ffd5e8d3cecf237fa0435e93cf385dc6e2b2912e870b55680e6de61fc4a9bedf889817b014
|
data/kitchen-puppet.gemspec
CHANGED
@@ -17,8 +17,8 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.require_paths = ['lib']
|
18
18
|
s.rubyforge_project = '[none]'
|
19
19
|
s.required_ruby_version = '>= 2.0'
|
20
|
-
s.add_dependency 'test-kitchen', '~> 1.4'
|
21
20
|
s.add_dependency 'net-ssh', '>= 3'
|
21
|
+
s.add_dependency 'test-kitchen', '~> 1.4'
|
22
22
|
s.description = <<-TEXT
|
23
23
|
== DESCRIPTION:
|
24
24
|
|
@@ -59,6 +59,7 @@ module Kitchen
|
|
59
59
|
default_config :http_proxy, nil
|
60
60
|
default_config :https_proxy, nil
|
61
61
|
default_config :no_proxy, nil
|
62
|
+
default_config :puppet_whitelist_exit_code, nil
|
62
63
|
|
63
64
|
default_config :puppet_config_path do |provisioner|
|
64
65
|
provisioner.calculate_path('puppet.conf', :file)
|
@@ -240,7 +241,8 @@ module Kitchen
|
|
240
241
|
puppet_noop_flag,
|
241
242
|
puppet_environment_flag,
|
242
243
|
puppet_verbose_flag,
|
243
|
-
puppet_debug_flag
|
244
|
+
puppet_debug_flag,
|
245
|
+
puppet_whitelist_exit_code
|
244
246
|
].compact.join(' ')
|
245
247
|
end
|
246
248
|
|
@@ -396,6 +398,20 @@ module Kitchen
|
|
396
398
|
config[:no_proxy]
|
397
399
|
end
|
398
400
|
|
401
|
+
def powershell?
|
402
|
+
powershell_shell? || !(puppet_platform =~ /^windows.*/).nil?
|
403
|
+
end
|
404
|
+
|
405
|
+
def puppet_whitelist_exit_code
|
406
|
+
if config[:puppet_whitelist_exit_code].nil?
|
407
|
+
powershell? ? '; exit $LASTEXITCODE' : nil
|
408
|
+
elsif powershell?
|
409
|
+
"; if(@(#{[config[:puppet_whitelist_exit_code]].join(', ')}) -contains $LASTEXITCODE) {exit 0} else {exit $LASTEXITCODE}"
|
410
|
+
else
|
411
|
+
'; RC=$?; [ ' + [config[:puppet_whitelist_exit_code]].flatten.map { |x| "\$RC -eq #{x}" }.join(' -o ') + ' ] && exit 0; exit $RC'
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
399
415
|
def chef_url
|
400
416
|
config[:chef_bootstrap_url]
|
401
417
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.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: 2017-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: net-ssh
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: test-kitchen
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '1.4'
|
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: '
|
40
|
+
version: '1.4'
|
41
41
|
description: |2+
|
42
42
|
== DESCRIPTION:
|
43
43
|
|