kitchen-puppet 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,8 @@ module Kitchen
47
47
  default_config :puppet_version, nil
48
48
  default_config :require_puppet_repo, true
49
49
  default_config :require_chef_for_busser, true
50
- default_config :resolve_with_librarian_puppet, true
50
+ default_config :resolve_with_librarian_puppet, true
51
+ default_config :puppet_environment, nil
51
52
  default_config :puppet_apt_repo, "http://apt.puppetlabs.com/puppetlabs-release-precise.deb"
52
53
  default_config :puppet_yum_repo, "https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm"
53
54
  default_config :chef_bootstrap_url, "https://www.getchef.com/chef/install.sh"
@@ -305,6 +306,7 @@ module Kitchen
305
306
  "--modulepath=#{File.join(config[:root_path], 'modules')}",
306
307
  "--manifestdir=#{File.join(config[:root_path], 'manifests')}",
307
308
  "--fileserverconfig=#{File.join(config[:root_path], 'fileserver.conf')}",
309
+ puppet_environment_flag,
308
310
  puppet_noop_flag,
309
311
  puppet_verbose_flag,
310
312
  puppet_debug_flag,
@@ -356,7 +358,11 @@ module Kitchen
356
358
  def puppet_config
357
359
  config[:puppet_config_path]
358
360
  end
359
-
361
+
362
+ def puppet_environment
363
+ config[:puppet_environment]
364
+ end
365
+
360
366
  def hiera_config
361
367
  config[:hiera_config_path]
362
368
  end
@@ -381,6 +387,10 @@ module Kitchen
381
387
  config[:puppet_version] ? "-#{config[:puppet_version]}" : nil
382
388
  end
383
389
 
390
+ def puppet_environment_flag
391
+ config[:puppet_environment] ? "--environment=#{config[:puppet_environment]}" : nil
392
+ end
393
+
384
394
  def puppet_noop_flag
385
395
  config[:puppet_noop] ? '--noop' : nil
386
396
  end
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Puppet
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
@@ -29,6 +29,8 @@ puppetfile_path | | Path to Puppetfile
29
29
  puppet_apply_command | nil | Overwrite the puppet apply command. Needs "sudo -E puppet apply" as a prefix.
30
30
  require_chef_for_busser | true | Install chef as currently needed by busser to run tests
31
31
  resolve_with_librarian_puppet | true | Use librarian_puppet to resolve modules if a Puppetfile is found
32
+ puppet_config_path | | path of custom puppet.conf file
33
+ puppet_environment | nil | puppet environment for running puppet apply
32
34
 
33
35
  ## Configuring Provisioner Options
34
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-10 00:00:00.000000000 Z
12
+ date: 2014-10-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '== DESCRIPTION:
15
15