kitchen-puppet 1.43.1 → 1.44.0
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 +4 -4
- data/lib/kitchen-puppet/version.rb +1 -1
- data/lib/kitchen/provisioner/puppet_apply.rb +12 -5
- data/provisioner_options.md +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6314cc10492c63f794d66098afb52e4fe9c9ac7e
|
|
4
|
+
data.tar.gz: 2b5dd23b20c8d1b403330429ebde2e865de3ce93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b0f1ebdad959babb9a7faa930e6a49b9ee4c0488db4f13eaf7d0070ff8ee6ff8dcdfb7277f03abfbec1df359bedc21103ca730ab01e9b76c82eb593a021bdc7
|
|
7
|
+
data.tar.gz: 76775062140c2b890dbc1237d4db8e5daa737c93597c6a777e9dd12a8f4c959e42bb5236ef66bf31238c422277117a387bb27438f27ffee16ce26dd746da1ca1
|
|
@@ -637,12 +637,19 @@ module Kitchen
|
|
|
637
637
|
puppet_logdest_flag,
|
|
638
638
|
puppet_whitelist_exit_code
|
|
639
639
|
].join(' ')
|
|
640
|
-
if config[:
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
640
|
+
if config[:custom_post_apply_command]
|
|
641
|
+
custom_post_apply_trap = <<-TRAP
|
|
642
|
+
function custom_post_apply_command {
|
|
643
|
+
#{config[:custom_post_apply_command]}
|
|
644
|
+
}
|
|
645
|
+
trap custom_post_apply_command EXIT
|
|
646
|
+
TRAP
|
|
645
647
|
end
|
|
648
|
+
result = <<-RUN
|
|
649
|
+
#{config[:custom_pre_apply_command]}
|
|
650
|
+
#{custom_post_apply_trap}
|
|
651
|
+
#{result}
|
|
652
|
+
RUN
|
|
646
653
|
info("Going to invoke puppet apply with: #{result}")
|
|
647
654
|
result
|
|
648
655
|
end
|
data/provisioner_options.md
CHANGED
|
@@ -30,9 +30,10 @@ key | default value | Notes
|
|
|
30
30
|
chef_bootstrap_url |"https://www.getchef.com/chef/install.sh"| the chef (needed for busser to run tests) NOTE: kitchen 1.4 only requires ruby to run busser so this is not required.
|
|
31
31
|
custom_facts| Hash.new | Hash to set the puppet facts before running puppet apply
|
|
32
32
|
custom_options | | custom options to add to puppet apply command.
|
|
33
|
+
custom_pre_install_command | nil | Custom shell command to be used at beginning of install stage. Can be multiline.
|
|
33
34
|
custom_install_command | nil | Custom shell command to be used at end of install stage. Can be multiline. See examples below.
|
|
34
35
|
custom_pre_apply_command | nil | Custom shell command to be used before the puppet apply stage. Can be multiline. See examples below.
|
|
35
|
-
|
|
36
|
+
custom_post_apply_command | nil | Custom shell command to be used after the puppet apply stage. Can be multiline. See examples below.
|
|
36
37
|
facter_file | nil | yaml file of custom facter_files to be provided to the puppet-apply command
|
|
37
38
|
facter_version | "latest"| desired version, affects apt installs.
|
|
38
39
|
files_path | | directory to place at /tmp/kitchen/files
|
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.
|
|
4
|
+
version: 1.44.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: 2016-
|
|
11
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|