kitchen-puppet 3.4.0 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 139b2174dec96faca4984ddd13423117d5ffd3b7
|
4
|
+
data.tar.gz: 1d5ee53ff7254ff378d7c860bb7025da2915e019
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acd7448be488e478c7c2a71242303b06b1f0ca092cefa30dd9fbf68447e3b1d493e4cd1f091196e1979ab7adbb863e18c9860125516a8e4cb81e7b1376bcd25f
|
7
|
+
data.tar.gz: 46e0026cdb6a70ca6b54a16a93e3fb701c0e6dc5d26cde6f10f63eff3473e61ee58bede22081ca5c781ecd28cfa22c27eb5a4abac4de5fd733fb4973503329f5
|
@@ -19,6 +19,7 @@
|
|
19
19
|
|
20
20
|
require 'kitchen/errors'
|
21
21
|
require 'kitchen/logging'
|
22
|
+
require 'librarian/ui'
|
22
23
|
|
23
24
|
module Kitchen
|
24
25
|
module Provisioner
|
@@ -29,6 +30,34 @@ module Kitchen
|
|
29
30
|
class Librarian
|
30
31
|
include Logging
|
31
32
|
|
33
|
+
class LoggerUI < ::Librarian::UI
|
34
|
+
attr_writer :logger
|
35
|
+
|
36
|
+
def initialize(logger)
|
37
|
+
@logger = logger
|
38
|
+
end
|
39
|
+
|
40
|
+
def warn(message = nil)
|
41
|
+
@logger.warn(message || yield)
|
42
|
+
end
|
43
|
+
|
44
|
+
def debug(message = nil)
|
45
|
+
@logger.debug(message || yield)
|
46
|
+
end
|
47
|
+
|
48
|
+
def error(message = nil)
|
49
|
+
@logger.error(message || yield)
|
50
|
+
end
|
51
|
+
|
52
|
+
def info(message = nil)
|
53
|
+
@logger.info(message || yield)
|
54
|
+
end
|
55
|
+
|
56
|
+
def confirm(message = nil)
|
57
|
+
@logger.info(message || yield)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
32
61
|
def initialize(puppetfile, path, logger = Kitchen.logger)
|
33
62
|
@puppetfile = puppetfile
|
34
63
|
@path = path
|
@@ -47,6 +76,7 @@ module Kitchen
|
|
47
76
|
env = ::Librarian::Puppet::Environment.new(
|
48
77
|
project_path: File.expand_path(File.dirname(puppetfile))
|
49
78
|
)
|
79
|
+
env.ui = LoggerUI.new(@logger)
|
50
80
|
|
51
81
|
env.config_db.local['path'] = path
|
52
82
|
::Librarian::Action::Resolve.new(env).run
|
@@ -95,6 +95,7 @@ module Kitchen
|
|
95
95
|
default_config :ignored_paths_from_root, ['spec']
|
96
96
|
default_config :hiera_data_remote_path, nil
|
97
97
|
default_config :manifest, ''
|
98
|
+
default_config :puppet_binary, 'puppet'
|
98
99
|
|
99
100
|
default_config :manifests_path do |provisioner|
|
100
101
|
provisioner.calculate_path('manifests') ||
|
@@ -915,7 +916,7 @@ module Kitchen
|
|
915
916
|
def puppet_cmd
|
916
917
|
return '& "C:\Program Files\Puppet Labs\Puppet\bin\puppet"' if powershell?
|
917
918
|
|
918
|
-
puppet_bin = config[:require_puppet_collections] ? "#{config[:puppet_coll_remote_path]}/bin/puppet" :
|
919
|
+
puppet_bin = config[:require_puppet_collections] ? "#{config[:puppet_coll_remote_path]}/bin/puppet" : config[:puppet_binary]
|
919
920
|
|
920
921
|
if config[:puppet_no_sudo]
|
921
922
|
puppet_bin
|
data/provisioner_options.md
CHANGED
@@ -75,6 +75,7 @@ puppet_apt_collections_repo | http://apt.puppetlabs.com/ puppet5-release-wheezy.
|
|
75
75
|
_for Ubuntu14 change to_ | http://apt.puppetlabs.com/ puppet5-release-trusty.deb |
|
76
76
|
_for Ubuntu15 change to_ | http://apt.puppetlabs.com/ puppet5-release-jessie.deb |
|
77
77
|
_for Ubuntu16.04 change to_ | http://apt.puppetlabs.com/ puppet5-release-xenial.deb |
|
78
|
+
puppet_binary | 'puppet' | puppet default binary
|
78
79
|
puppet_coll_remote_path | "/opt/puppetlabs" | Server Installation location of a puppet collections install.
|
79
80
|
puppet_config_path | | path of custom puppet.conf file
|
80
81
|
puppet_debug| false| Enable full debugging logging on puppet run
|
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.4.
|
4
|
+
version: 3.4.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: 2018-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|