kitchen-puppet 1.48.0 → 1.48.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: debd28736910200661dc96c3c1bf12549f57e75c
|
4
|
+
data.tar.gz: 8d0813e4a2007ec467241a9335df5d8401f67aac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20babd32d215eb95382eb4b9d82619c12b70df547c46995f7d9a03aa021a728d9d4893d8c7936a3587a911b58eb994cc0689ed1d33bf57091702eef3a91e8934
|
7
|
+
data.tar.gz: 153af5383999fe6ce89afcd1c481a21b92721e3329e99549869561b933dc2d5c0f88e7d3d950d82d63c386f6d25544ca3b489b17776159c028bcad89e6d8338c
|
data/kitchen-puppet.gemspec
CHANGED
@@ -23,13 +23,13 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_dependency 'net-ssh', '~> 2.9'
|
24
24
|
end
|
25
25
|
s.description = <<-EOF
|
26
|
-
== DESCRIPTION:
|
26
|
+
== DESCRIPTION:
|
27
27
|
|
28
|
-
Puppet Provisioner for Test Kitchen
|
28
|
+
Puppet Provisioner for Test Kitchen
|
29
29
|
|
30
|
-
== FEATURES:
|
30
|
+
== FEATURES:
|
31
31
|
|
32
|
-
Supports puppet apply, puppet agent, hiera, hiera-eyaml, hiera-eyaml-gpg, custom facts, librarian-puppet, puppet collections (v4)
|
32
|
+
Supports puppet apply, puppet agent, hiera, hiera-eyaml, hiera-eyaml-gpg, custom facts, librarian-puppet, puppet collections (v4)
|
33
33
|
|
34
34
|
EOF
|
35
35
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
|
2
3
|
#
|
3
4
|
# Author:: Chris Lundquist (<chris.lundquist@github.com>) Neill Turner (<neillwturner@gmail.com>)
|
4
5
|
#
|
@@ -27,7 +28,7 @@ require 'kitchen/provisioner/puppet/librarian'
|
|
27
28
|
module Kitchen
|
28
29
|
class Busser
|
29
30
|
def non_suite_dirs
|
30
|
-
%w
|
31
|
+
%w[data data_bags environments nodes roles puppet]
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
|
2
3
|
#
|
3
4
|
# Author:: Chris Lundquist (<chris.lundquist@github.com>) Neill Turner (<neillwturner@gmail.com>)
|
4
5
|
#
|
@@ -28,7 +29,7 @@ require 'kitchen/provisioner/puppet/librarian'
|
|
28
29
|
module Kitchen
|
29
30
|
class Busser
|
30
31
|
def non_suite_dirs
|
31
|
-
%w
|
32
|
+
%w[data data_bags environments nodes roles puppet]
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
@@ -240,7 +241,7 @@ module Kitchen
|
|
240
241
|
} else {
|
241
242
|
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-#{puppet_windows_version}${architecture}.msi"
|
242
243
|
}
|
243
|
-
|
244
|
+
Invoke-WebRequest $MsiUrl -UseBasicParsing -OutFile "C:/puppet.msi" #{posh_proxy_parm}
|
244
245
|
$process = Start-Process -FilePath msiexec.exe -Wait -PassThru -ArgumentList '/qn', '/norestart', '/i', 'C:\\puppet.msi'
|
245
246
|
if ($process.ExitCode -ne 0) {
|
246
247
|
Write-Host "Installer failed."
|
@@ -333,7 +334,7 @@ module Kitchen
|
|
333
334
|
} else {
|
334
335
|
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
|
335
336
|
}
|
336
|
-
|
337
|
+
Invoke-WebRequest $MsiUrl -UseBasicParsing -OutFile "C:/puppet-agent.msi" #{posh_proxy_parm}
|
337
338
|
$process = Start-Process -FilePath msiexec.exe -Wait -PassThru -ArgumentList '/qn', '/norestart', '/i', 'C:\\puppet-agent.msi'
|
338
339
|
if ($process.ExitCode -ne 0) {
|
339
340
|
Write-Host "Installer failed."
|
@@ -519,7 +520,7 @@ module Kitchen
|
|
519
520
|
end
|
520
521
|
|
521
522
|
def init_command
|
522
|
-
todelete = %w
|
523
|
+
todelete = %w[modules manifests files hiera hiera.yaml facter spec enc]
|
523
524
|
.map { |dir| File.join(config[:root_path], dir) }
|
524
525
|
todelete += [hiera_data_remote_path,
|
525
526
|
'/etc/hiera.yaml',
|
@@ -788,7 +789,12 @@ module Kitchen
|
|
788
789
|
|
789
790
|
def hiera_data_remote_path
|
790
791
|
return config[:hiera_data_remote_path] if config[:hiera_data_remote_path]
|
791
|
-
|
792
|
+
|
793
|
+
if config[:require_puppet_collections]
|
794
|
+
powershell? ? 'C:/ProgramData/PuppetLabs/code/environments/production/hieradata' : '/etc/puppetlabs/code/environments/production/hieradata'
|
795
|
+
else
|
796
|
+
powershell? ? 'C:/ProgramData/PuppetLabs/hiera/var' : '/var/lib/hiera'
|
797
|
+
end
|
792
798
|
end
|
793
799
|
|
794
800
|
def hiera_writer
|
@@ -965,7 +971,7 @@ module Kitchen
|
|
965
971
|
|
966
972
|
def facterlib
|
967
973
|
factpath = nil
|
968
|
-
factpath = File.join(config[:root_path], 'facter').to_s if config[:install_custom_facts] &&
|
974
|
+
factpath = File.join(config[:root_path], 'facter').to_s if config[:install_custom_facts] && config[:custom_facts].any?
|
969
975
|
factpath = File.join(config[:root_path], 'facter').to_s if config[:facter_file]
|
970
976
|
factpath = "#{factpath}:" if config[:facterlib] && !factpath.nil?
|
971
977
|
factpath = "#{factpath}#{config[:facterlib]}" if config[:facterlib]
|
@@ -1200,7 +1206,7 @@ module Kitchen
|
|
1200
1206
|
end
|
1201
1207
|
|
1202
1208
|
def copy_modules(modules, destination)
|
1203
|
-
excluded_paths = %w
|
1209
|
+
excluded_paths = %w[modules pkg] + config[:ignored_paths_from_root]
|
1204
1210
|
debug("Copying modules to directory: #{destination}")
|
1205
1211
|
modules.each do |name, source|
|
1206
1212
|
next unless File.directory?(source)
|
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.48.
|
4
|
+
version: 1.48.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: 2017-
|
11
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|
@@ -38,14 +38,14 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3'
|
41
|
-
description:
|
42
|
-
|
41
|
+
description: |2+
|
42
|
+
== DESCRIPTION:
|
43
43
|
|
44
|
-
|
44
|
+
Puppet Provisioner for Test Kitchen
|
45
45
|
|
46
|
-
|
46
|
+
== FEATURES:
|
47
47
|
|
48
|
-
|
48
|
+
Supports puppet apply, puppet agent, hiera, hiera-eyaml, hiera-eyaml-gpg, custom facts, librarian-puppet, puppet collections (v4)
|
49
49
|
|
50
50
|
email:
|
51
51
|
- neillwturner@gmail.com
|