kitchen-puppet 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '0.0.21'
5
+ VERSION = '0.0.22'
6
6
  end
7
7
  end
@@ -52,6 +52,7 @@ module Kitchen
52
52
  default_config :puppet_apt_repo, 'http://apt.puppetlabs.com/puppetlabs-release-precise.deb'
53
53
  default_config :puppet_yum_repo, 'https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm'
54
54
  default_config :chef_bootstrap_url, 'https://www.getchef.com/chef/install.sh'
55
+ default_config :puppet_logdest, nil
55
56
 
56
57
  default_config :puppet_apply_command, nil
57
58
 
@@ -349,6 +350,7 @@ module Kitchen
349
350
  puppet_detailed_exitcodes_flag,
350
351
  puppet_verbose_flag,
351
352
  puppet_debug_flag,
353
+ puppet_logdest_flag,
352
354
  remove_repo
353
355
  ].join(' ')
354
356
  end
@@ -459,6 +461,15 @@ module Kitchen
459
461
  config[:puppet_verbose] ? '-v' : nil
460
462
  end
461
463
 
464
+ def puppet_logdest_flag
465
+ return nil unless config[:puppet_logdest]
466
+ destinations = ''
467
+ config[:puppet_logdest].each do |dest|
468
+ destinations << "--logdest #{dest} "
469
+ end
470
+ destinations
471
+ end
472
+
462
473
  def puppet_platform
463
474
  config[:puppet_platform].to_s.downcase
464
475
  end
@@ -28,18 +28,19 @@ custom_facts| Hash.new | Hash to set the puppet facts before running puppet appl
28
28
  install_custom_facts| false | Install custom facts to yaml file at "/tmp/kitchen/facter/kitchen.yaml"
29
29
  chef_bootstrap_url |"https://www.getchef.com/chef/install.sh"| the chef (needed for busser to run tests)
30
30
  puppetfile_path | | Path to Puppetfile
31
- puppet_apply_command | nil | Overwrite the puppet apply command. Needs "sudo -E puppet apply" as a prefix.
32
- require_chef_for_busser | true | Install chef as currently needed by busser to run tests
33
- resolve_with_librarian_puppet | true | Use librarian_puppet to resolve modules if a Puppetfile is found
31
+ puppet_apply_command | nil | Overwrite the puppet apply command. Needs "sudo -E puppet apply" as a prefix.
32
+ require_chef_for_busser | true | Install chef as currently needed by busser to run tests
33
+ resolve_with_librarian_puppet | true | Use librarian_puppet to resolve modules if a Puppetfile is found
34
34
  librarian_puppet_ssl_file | nil | ssl certificate file for librarian-puppet
35
- puppet_config_path | | path of custom puppet.conf file
36
- puppet_environment | nil | puppet environment for running puppet apply
35
+ puppet_config_path | | path of custom puppet.conf file
36
+ puppet_environment | nil | puppet environment for running puppet apply
37
37
  remove_puppet_repo | false | remove copy of puppet repository and puppet configuration on server after running puppet
38
38
  hiera_eyaml | false | use hiera-eyaml to encrypt hiera data
39
39
  hiera_eyaml_key_remote_path | "/etc/puppet/secure/keys" | directory of hiera-eyaml keys on server
40
40
  hiera_eyaml_key_path | "hiera_keys" | directory of hiera-eyaml keys on workstation
41
41
  facter_file | nil | yaml file of custom facter_files to be provided to the puppet-apply command
42
- http_proxy | nil | use http proxy when installing puppet and packages
42
+ http_proxy | nil | use http proxy when installing puppet and packages
43
+ puppet_logdest | nil | _Array_ of log destinations. Include 'console' if wanted
43
44
 
44
45
  ## Puppet Apply Configuring Provisioner Options
45
46
 
@@ -87,7 +88,7 @@ It can be beneficial to keep different Puppet layouts for different suites. Rath
87
88
  ### Puppet Version
88
89
  When specifying a puppet version, you must use this format: "3.6.2-1puppetlabs1". I have
89
90
  no idea why Puppet versioned their repository with a trailing
90
- "-1puppetlabs1", but there it is.
91
+ "-1puppetlabs1", but there it is.
91
92
 
92
93
 
93
94
  # Puppet Agent Provisioner Options
@@ -104,24 +105,24 @@ puppet_omnibus_url | | omnibus puppet install location.
104
105
  puppet_omnibus_remote_path | "/opt/puppet" | Server Installation location of an omnibus puppet install.
105
106
  puppet_detailed_exitcodes | nil | Provide transaction information via exit codes.
106
107
  puppet_logdest | nil | Where to send messages. Choose between syslog, the console, and a log file.
107
- puppet_masterport | nil | The port on which to contact the puppet master.
108
+ puppet_masterport | nil | The port on which to contact the puppet master.
108
109
  puppet_test | false | Enable the most common options used for testing.
109
110
  puppet_onetime | true | Run the configuration once.
110
- puppet_no_daemonize | true | Do not send the process into the background.
111
- puppet_server | nil | will default to 'puppet'. Useful for interactively running when used with the --no-daemonize option.
112
- puppet_waitforcert | '0' | Time to wait for certificate if agent does not yet have certificates
111
+ puppet_no_daemonize | true | Do not send the process into the background.
112
+ puppet_server | nil | will default to 'puppet'. Useful for interactively running when used with the --no-daemonize option.
113
+ puppet_waitforcert | '0' | Time to wait for certificate if agent does not yet have certificates
113
114
  puppet_certname | nil | Set the certname (unique ID) of the client
114
- puppet_digest | nil | Change the certificate fingerprinting digest algorithm. The default is SHA256
115
+ puppet_digest | nil | Change the certificate fingerprinting digest algorithm. The default is SHA256
115
116
  puppet_debug| false| Enable full debugging logging on puppet run
116
117
  puppet_verbose| false| Extra information logging on puppet run
117
118
  puppet_noop| false| puppet runs in a no-op or dry-run mode
118
119
  update_package_repos| true| update OS repository metadata
119
120
  custom_facts| Hash.new | Hash to set the puppet facts before running puppet apply
120
121
  chef_bootstrap_url |"https://www.getchef.com/chef/install.sh"| the chef (needed for busser to run tests)
121
- puppet_agent_command | nil | Overwrite the puppet agent command. Needs "sudo -E puppet agent" as a prefix.
122
- require_chef_for_busser | true | Install chef as currently needed by busser to run tests
123
- puppet_config_path | | path of custom puppet.conf file
124
- http_proxy | nil | use http proxy when installing puppet and packages
122
+ puppet_agent_command | nil | Overwrite the puppet agent command. Needs "sudo -E puppet agent" as a prefix.
123
+ require_chef_for_busser | true | Install chef as currently needed by busser to run tests
124
+ puppet_config_path | | path of custom puppet.conf file
125
+ http_proxy | nil | use http proxy when installing puppet and packages
125
126
 
126
127
 
127
128
  ## Puppet Agent Configuring Provisioner Options
@@ -137,7 +138,7 @@ The provisioner can be configured globally or per suite, global settings act as
137
138
  puppet_debug: true
138
139
  puppet_verbose: true
139
140
  puppet_server: puppetmaster-nocm-ubuntu-1204
140
-
141
+
141
142
  platforms:
142
143
  - name: nocm_ubuntu-12.04
143
144
  driver_plugin: vagrant
@@ -152,8 +153,8 @@ The provisioner can be configured globally or per suite, global settings act as
152
153
  In this example, vagrant will download a box for ubuntu 1204 with no configuration management installed, then install the latest puppet and run puppet agent against a puppet master at puppetmaster-nocm-ubuntu-1204
153
154
 
154
155
  NOTE: It is important that the server can resolve the hostname ip address of the puppetmaster, in this case puppetmaster-nocm-ubuntu-1204
155
- and the puppetmaster must be able to resolve the hostname ip address address of the hostname of the node running puppet agent.
156
- This can be done by settings in the /etc/hosts files before running puppet.
156
+ and the puppetmaster must be able to resolve the hostname ip address address of the hostname of the node running puppet agent.
157
+ This can be done by settings in the /etc/hosts files before running puppet.
157
158
 
158
159
  NOTE: For testing it is possible to set the puppetmaster to autosign the certificate of a node by created a file /etc/puppet/autosign.conf that contains an *.
159
160
 
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.21
4
+ version: 0.0.22
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: 2015-01-21 00:00:00.000000000 Z
12
+ date: 2015-02-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '== DESCRIPTION:
15
15