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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e913481016895e945afb71d289cfdb28f659572f
4
- data.tar.gz: 0cd76403d1c5e7ab4c6e83954679e99400a5f3f1
3
+ metadata.gz: 6314cc10492c63f794d66098afb52e4fe9c9ac7e
4
+ data.tar.gz: 2b5dd23b20c8d1b403330429ebde2e865de3ce93
5
5
  SHA512:
6
- metadata.gz: e962188077f822eabd2d14aaadcc8ffbb217009a1e024bc87efba2d90904a2be8bf99624259f407464d48adeb9e3adc2e7369c57beff5f001a0fb95b185cf293
7
- data.tar.gz: 676923046eb3466948e53bc3104340261155c370f8e21368ed857680a73a83e50c0945911c516e7c55a041520423f100575902edd0795991d6a147201fc8a9ec
6
+ metadata.gz: 4b0f1ebdad959babb9a7faa930e6a49b9ee4c0488db4f13eaf7d0070ff8ee6ff8dcdfb7277f03abfbec1df359bedc21103ca730ab01e9b76c82eb593a021bdc7
7
+ data.tar.gz: 76775062140c2b890dbc1237d4db8e5daa737c93597c6a777e9dd12a8f4c959e42bb5236ef66bf31238c422277117a387bb27438f27ffee16ce26dd746da1ca1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '1.43.1'.freeze
5
+ VERSION = '1.44.0'.freeze
6
6
  end
7
7
  end
@@ -637,12 +637,19 @@ module Kitchen
637
637
  puppet_logdest_flag,
638
638
  puppet_whitelist_exit_code
639
639
  ].join(' ')
640
- if config[:custom_pre_apply_command]
641
- result = <<-RUN
642
- #{config[:custom_pre_apply_command]}
643
- #{result}
644
- RUN
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
@@ -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
- custom_pre_install_command | nil | Custom shell command to be used at beginning of install stage. Can be multiline.
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.43.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-07-28 00:00:00.000000000 Z
11
+ date: 2016-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen