kitchen-puppet 1.0.32 → 1.0.33

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: af420180c29dc5ff3d167e94b7ed8a3926e939be
4
- data.tar.gz: 615e9d379eaecc18518e2bbc2f0cb2c6c1628dc4
3
+ metadata.gz: f35ff34e5f2d431f879e03f1ef78f663b5cb2035
4
+ data.tar.gz: 8ec9e89202b63c503cffe34ccc2b9a9f34a0490a
5
5
  SHA512:
6
- metadata.gz: 65466da1de6bc81a8ee56c4668745d7fc278f837e6a11604c1af51a9a729377d99b7bf50a264451d3b3b09c74e1fb62273e3600c4ccd6bb563d6a49ee772389d
7
- data.tar.gz: 47ae5d2cf0d7211087feca2b10b698557bc36cf2e64e80f3e69d9fb2f8711e21d8c0135fdb998cb86c7a9419512919db5952ed8e36795e413581cfa7dba08f92
6
+ metadata.gz: f19631f93680c0152e4f0a570478eaa63cc49fd450e82e5dfb93673e3351bd05a5f1e73982ef13b2db54848c0b78cf104b5a1a36df0bc40751dc4668f8b78281
7
+ data.tar.gz: f69ba6210b184cfe83e9d63173e706ee475ec434dabe9509552ce20cc55af86073a9f8f66e3f9356faf90eddd5544600f0bd242a7cf463755d07b0a6470b9a0c
data/README.md CHANGED
@@ -16,6 +16,41 @@ The PuppetAgent provider works by passing the puppetmaster and other attributes
16
16
 
17
17
  This provider has been tested against the Ubuntu 1204 and Centos 6.5 boxes running in vagrant/virtualbox as well as various docker .
18
18
 
19
+ ## Windows Workstation Install
20
+ You need to download the puppet msi and install it and run everything inside the puppet window.
21
+
22
+ 1. Download and install puppet from the windows msi file from https://downloads.puppetlabs.com/windows
23
+ * I recommend the using the 32 bit version as not all ruby gems works with the 64 bit version.
24
+ * Don't do a 'gem install puppet' !!!.
25
+
26
+ 2. Select "Start Command Prompt with Puppet" to go to a Command Window.
27
+
28
+ 3. Install the Ruby DevKit:
29
+ * Download and install devkit from http://rubyinstaller.org/downloads
30
+ * (Use a 32 or 64 bit version that matches version of the ruby install)
31
+ * In the devkit directory run “ruby dk.rb init”.
32
+ * Edit the config.yml generated and add the the path of the ruby install for puppet
33
+ * (it will be <install dir of puppet>/sys/ruby).
34
+ * Run “ruby dk.rb install” to bind it to the puppet ruby installation.
35
+
36
+ 4. From a Command prompt:
37
+ * gem install librarian-puppet
38
+ * gem install test-kitchen
39
+ * gem install kitchen-puppet
40
+
41
+ ## Mac-OSX Workstation Install
42
+
43
+ 1. Download and install the mac packages from https://downloads.puppetlabs.com/mac/
44
+ * The most recent Facter package (facter-<VERSION>.dmg)
45
+ * The most recent Hiera package (hiera-<VERSION>.dmg)
46
+ * The most recent Puppet package (puppet-<VERSION>.dmg)
47
+ * See [How to Install Software from DMG Files on a Mac](http://www.ofzenandcomputing.com/how-to-install-dmg-files-mac/) for details.
48
+
49
+ 2. From a Command prompt:
50
+ * gem install librarian-puppet
51
+ * gem install test-kitchen
52
+ * gem install kitchen-puppet
53
+
19
54
  ## Requirements
20
55
  You'll need a driver box without a chef installation so puppet can be installed. Puppet have one at http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-12042-x64-vbox4210-nocm.box or http://puppet-vagrant-boxes.puppetlabs.com/centos-65-x64-virtualbox-nocm.box.
21
56
 
@@ -23,9 +58,7 @@ For PuppetAgent a server with a puppet master is required that can resolve the h
23
58
 
24
59
  You can also use the PuppetApply driver with a docker container, provided the necessary box requirements to install puppet are included inside the container. The easiest way to do this is to supply Kitchen-Docker with a custom dockerfile to install the needed dependencies for puppet installation.
25
60
 
26
- ## Installation & Setup
27
- You'll need the test-kitchen & kitchen-puppet gem's installed in your system, along with kitchen-vagrant or some ther suitable driver for test-kitchen.
28
-
61
+ ## Provisioner Options
29
62
  Please see the Provisioner Options (https://github.com/neillturner/kitchen-puppet/blob/master/provisioner_options.md).
30
63
 
31
64
  ## Contributing
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Kitchen
4
4
  module Puppet
5
- VERSION = '1.0.32'
5
+ VERSION = '1.0.33'
6
6
  end
7
7
  end
@@ -33,7 +33,7 @@ module Kitchen
33
33
  end
34
34
 
35
35
  module Configurable
36
- def platform_name(*)
36
+ def platform_name
37
37
  instance.platform.name
38
38
  end
39
39
  end
@@ -53,6 +53,7 @@ module Kitchen
53
53
  default_config :facter_version, nil
54
54
  default_config :hiera_version, nil
55
55
  default_config :install_hiera, false
56
+ default_config :hiera_package, 'hiera-puppet'
56
57
  default_config :require_puppet_repo, true
57
58
  default_config :require_chef_for_busser, true
58
59
  default_config :resolve_with_librarian_puppet, true
@@ -132,9 +133,7 @@ module Kitchen
132
133
  default_config :puppet_debug, false
133
134
  default_config :puppet_verbose, false
134
135
  default_config :puppet_noop, false
135
- default_config :platform do |provisioner|
136
- provisioner.platform_name('')
137
- end
136
+ default_config :platform, &:platform_name
138
137
  default_config :update_package_repos, true
139
138
  default_config :remove_puppet_repo, false
140
139
  default_config :custom_facts, {}
@@ -333,10 +332,14 @@ module Kitchen
333
332
  def install_hiera
334
333
  return unless config[:install_hiera]
335
334
  <<-INSTALL
336
- #{sudo_env('apt-get')} -y install hiera-puppet#{puppet_hiera_debian_version}
335
+ #{sudo_env('apt-get')} -y install #{hiera_package}
337
336
  INSTALL
338
337
  end
339
338
 
339
+ def hiera_package
340
+ "#{config[:hiera_package]}#{puppet_hiera_debian_version}"
341
+ end
342
+
340
343
  # /bin/wget -P /etc/pki/rpm-gpg/ http://yum.puppetlabs.com/RPM-GPG-KEY-puppetlabs
341
344
  # changed to curl
342
345
 
@@ -8,12 +8,17 @@ facter_version | "latest"| desired version, affects apt installs.
8
8
  platform | platform_name kitchen.yml parameter | OS platform of server
9
9
  hiera_version | "latest"| desired version, affects apt installs.
10
10
  install_hiera | false | Installs `hiera-puppet` package. Not needed for puppet > 3.x.x
11
+ hiera_package | 'hiera-puppet' | Only used if `install_hiera` is set
11
12
  require_puppet_repo | true | Set if using a puppet install from yum or apt repo
12
- puppet_apt_repo | "http://apt.puppetlabs.com/puppetlabs-release-precise.deb"| apt repo
13
- puppet_yum_repo | "https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm"| yum repo
13
+ puppet_apt_repo | "http://apt.puppetlabs.com/puppetlabs-release-precise.deb"| apt repo Ubuntu12
14
+ _for Ubuntu15 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-jessie.deb" |
15
+ puppet_yum_repo | "https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm"| yum repo RH/Centos6
16
+ _for RH/Centos7 change to_ | "https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm" |
14
17
  require_puppet_collections | false | Set if using puppet collections install (Puppet v4)
15
- puppet_yum_collections_repo | "http://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm" | yum collections repo
18
+ puppet_yum_collections_repo | "http://yum.puppetlabs.com/puppetlabs-release-pc1-el-6.noarch.rpm" | yum collections repo RH/Centos6
19
+ _for RH/Centos7 change to_ | "https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm" |
16
20
  puppet_apt_collections_repo | "http://apt.puppetlabs.com/puppetlabs-release-pc1-wheezy.deb" | apt collections repo
21
+ _for Ubuntu15 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-pc1-jessie.deb" |
17
22
  puppet_coll_remote_path | "/opt/puppetlabs" | Server Installation location of a puppet collections install.
18
23
  puppet_detailed_exitcodes | nil | Provide transaction information via exit codes.
19
24
  manifests_path | | puppet repo manifests directory
@@ -139,7 +144,7 @@ key | default value | Notes
139
144
  ----|---------------|--------
140
145
  puppet_version | "latest"| desired version, affects apt installs.
141
146
  facter_version | "latest"| desired version, affects apt installs.
142
- puppet_platform | naively tries to determine | OS platform of server
147
+ platform | platform_name kitchen.yml parameter | OS platform of server
143
148
  require_puppet_repo | true | Set if using a puppet install from yum or apt repo
144
149
  puppet_apt_repo | "http://apt.puppetlabs.com/puppetlabs-release-precise.deb"| apt repo
145
150
  puppet_yum_repo | "https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm"| yum repo
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.0.32
4
+ version: 1.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neill Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-05 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen