kitchen-puppet 3.1.1 → 3.1.2

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: eaaf505d44b0beca6c1398a004a5983ce18b7d64
4
- data.tar.gz: 4efa248faa26035455a980df8fe1a23de2dc901e
3
+ metadata.gz: 8e18d3fcba9a242b12c3bd80aa220de2e9e0ed9d
4
+ data.tar.gz: 566d0b947d629763020bbea5c1ab6c38fec41ea6
5
5
  SHA512:
6
- metadata.gz: 5086f304113bb2b462a6f5495972e4c7164fde3f68b2a4b6b7a93145fbe97cc65c5677302802a2a4fe89aa20f7545efab7bc7aec8af8bfe2225dc929c39a5148
7
- data.tar.gz: 4abe8e0662d5decc1731b55e3801d67955e04a800a26640bcaa23304931d787c328639a4c46f45dc4af9327f0cf8e8f0c78195242c3d7baf01d8a6c40cbf2ad5
6
+ metadata.gz: 7008968bc7ae46297e5269565f5060f7683bd23be92ff3c3c1d62a19e9a970f43cab86d5ab8c25fb4c6f8cc68396a7395ec671fdd40dff4d4fb006a2089f2cb8
7
+ data.tar.gz: 7ea4d0e28a5c9f22bf97ef0fc0dd989a122a94b19b1f7b971f8300eda6e6ba2b4d51a1a30821bca447d32ed5cabea8d41063eec3ff948ec8d75e2ecf2e7a9ebb
data/README.md CHANGED
@@ -24,35 +24,9 @@ This provider has been tested against the Ubuntu 1204 and Centos 6.5 boxes runni
24
24
  * https://www.cedric-meury.ch/2016/10/test-driven-infrastructure-with-puppet-docker-test-kitchen-and-serverspec-yury-tsarev-gooddata
25
25
  * https://docs.puppet.com/puppet/latest/puppet_platform.html
26
26
 
27
- ## Windows Workstation Install
28
- You need to download the puppet msi and install it and run everything inside the puppet window.
27
+ ## Install
29
28
 
30
- 1. Download and install puppet from the windows msi file from https://downloads.puppetlabs.com/windows
31
- * I recommend the using the 64 bit version now.
32
- * Don't do a 'gem install puppet' !!!.
33
-
34
- 2. Select "Start Command Prompt with Puppet" to go to a Command Window.
35
-
36
- 3. Install the Ruby DevKit:
37
- * Download and install devkit from http://rubyinstaller.org/downloads
38
- * (Use the 32 or 64 bit version that matches version of the puppet install)
39
- * In the devkit directory run “ruby dk.rb init”.
40
- * Edit the config.yml generated and add the the path of the ruby install for puppet
41
- * (it will be <install dir of puppet>/sys/ruby).
42
- * Run “ruby dk.rb install” to bind it to the puppet ruby installation.
43
-
44
- 4. From a Command prompt:
45
- * gem install librarian-puppet
46
- * gem install test-kitchen
47
- * gem install kitchen-puppet
48
-
49
- ## Mac-OSX Workstation Install
50
-
51
- 1. Download and install the mac packages from https://downloads.puppetlabs.com/mac/
52
- * The most recent Facter package (facter-<VERSION>.dmg)
53
- * The most recent Hiera package (hiera-<VERSION>.dmg)
54
- * The most recent Puppet package (puppet-<VERSION>.dmg)
55
- * See [How to Install Software from DMG Files on a Mac](http://www.ofzenandcomputing.com/how-to-install-dmg-files-mac/) for details.
29
+ 1. install the latest Ruby on your workstations (for windows see https://rubyinstaller.org/downloads/)
56
30
 
57
31
  2. From a Command prompt:
58
32
  * gem install librarian-puppet
@@ -16,7 +16,11 @@ Gem::Specification.new do |s|
16
16
  s.platform = Gem::Platform::RUBY
17
17
  s.require_paths = ['lib']
18
18
  s.rubyforge_project = '[none]'
19
- s.add_dependency 'test-kitchen', '~> 1.4'
19
+ if RUBY_VERSION < '2.3'
20
+ s.add_dependency 'test-kitchen', '<= 1.16.0', '>= 1.4'
21
+ else
22
+ s.add_dependency 'test-kitchen', '>= 1.17.0'
23
+ end
20
24
  if RUBY_VERSION >= '2.0'
21
25
  s.add_dependency 'net-ssh', '>= 3'
22
26
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '3.1.1'.freeze
5
+ VERSION = '3.1.2'.freeze
6
6
  end
7
7
  end
@@ -22,6 +22,7 @@
22
22
  #
23
23
 
24
24
  require 'json'
25
+ require 'kitchen'
25
26
  require 'kitchen/provisioner/base'
26
27
  require 'kitchen/provisioner/puppet/librarian'
27
28
 
@@ -42,6 +43,7 @@ module Kitchen
42
43
  default_config :require_puppet_omnibus, false
43
44
  # TODO: use something like https://github.com/fnichol/omnibus-puppet
44
45
  default_config :puppet_omnibus_url, nil
46
+ default_config :puppet_environment, nil
45
47
  default_config :puppet_omnibus_remote_path, '/opt/puppet'
46
48
  default_config :puppet_version, nil
47
49
  default_config :facter_version, nil
@@ -236,15 +238,20 @@ module Kitchen
236
238
  puppet_onetime_flag,
237
239
  puppet_no_daemonize_flag,
238
240
  puppet_noop_flag,
241
+ puppet_environment_flag,
239
242
  puppet_verbose_flag,
240
243
  puppet_debug_flag
241
- ].join(' ')
244
+ ].compact.join(' ')
242
245
  end
243
246
 
244
247
  protected
245
248
 
246
249
  def load_needed_dependencies!; end
247
250
 
251
+ def puppet_environment_flag
252
+ config[:puppet_environment] ? "--environment=\"#{config[:puppet_environment]}\"" : nil
253
+ end
254
+
248
255
  def puppet_config
249
256
  config[:puppet_config_path]
250
257
  end
@@ -34,7 +34,7 @@ custom_pre_install_command | nil | Custom shell command to be used at beginning
34
34
  custom_install_command | nil | Custom shell command to be used at end of install stage. Can be multiline. See examples below.
35
35
  custom_pre_apply_command | nil | Custom shell command to be used before the puppet apply stage. Can be multiline. See examples below.
36
36
  custom_post_apply_command | nil | Custom shell command to be used after the puppet apply stage. Can be multiline. See examples below.
37
- facter_file | nil | yaml file of custom facter_files to be provided to the puppet-apply command
37
+ facter_file | nil | custom facter_file to be provided to the puppet-apply command
38
38
  facter_version | "latest"| desired version, affects apt installs.
39
39
  files_path | | directory to place at /tmp/kitchen/files
40
40
  fileserver_config_path | | file to place fileserver.conf
@@ -219,6 +219,7 @@ puppet_omnibus_remote_path | "/opt/puppet" | Server Installation location of an
219
219
  puppet_detailed_exitcodes | nil | Provide transaction information via exit codes.
220
220
  puppet_logdest | nil | Where to send messages. Choose between syslog, the console, and a log file.
221
221
  puppet_masterport | nil | The port on which to contact the puppet master.
222
+ puppet_environment | nil | The puppet environment to run the agent under
222
223
  puppet_test | false | Enable the most common options used for testing.
223
224
  puppet_onetime | true | Run the configuration once.
224
225
  puppet_no_daemonize | true | Do not send the process into the background.
@@ -346,4 +347,3 @@ provisioner:
346
347
  - 0
347
348
  - 2
348
349
  ```
349
-
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
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-08-20 00:00:00.000000000 Z
11
+ date: 2017-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.4'
19
+ version: 1.17.0
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: '1.4'
26
+ version: 1.17.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: net-ssh
29
29
  requirement: !ruby/object:Gem::Requirement