kitchen-puppet 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/lib/kitchen-puppet/version.rb +1 -1
- data/lib/kitchen/provisioner/puppet_apply.rb +11 -6
- data/provisioner_options.md +12 -11
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d938acbde5a2eab0ce1af65429bc730d06db41a
|
4
|
+
data.tar.gz: bcc6c23f6c24b7174f5f93eb8523bcfca3ceb5a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e13655c07d949e30eb05d821d08eebfd0a37d5e8322e81b1dc79330c0ffc20a0e40fef1e9c3619b2e322671242e26e15a6ec726d4c9326732e4cf1d83f758e5
|
7
|
+
data.tar.gz: bf3c5f53ea12eca73a217e78dd1fb04ed46ac3e30151ed4b089fcc7fc10103a008c9ba5081de7da1c50748741b189e3b5f3efd61b864eb6ac9680c5b3c324f1e
|
data/README.md
CHANGED
@@ -22,6 +22,7 @@ This provider has been tested against the Ubuntu 1204 and Centos 6.5 boxes runni
|
|
22
22
|
* http://www.slideshare.net/YuryTsarev/containercon-test-driven-infrastructure
|
23
23
|
* http://events.linuxfoundation.org/sites/events/files/slides/ContainerCon%20-%20Test%20Driven%20Infrastructure_0.pdf
|
24
24
|
* https://www.cedric-meury.ch/2016/10/test-driven-infrastructure-with-puppet-docker-test-kitchen-and-serverspec-yury-tsarev-gooddata
|
25
|
+
* https://docs.puppet.com/puppet/latest/puppet_platform.html
|
25
26
|
|
26
27
|
## Windows Workstation Install
|
27
28
|
You need to download the puppet msi and install it and run everything inside the puppet window.
|
@@ -204,18 +205,17 @@ driver:
|
|
204
205
|
name: vagrant
|
205
206
|
|
206
207
|
provisioner:
|
207
|
-
|
208
|
-
name: puppet_hierawriter_apply
|
208
|
+
name: puppet_apply
|
209
209
|
manifests_path: /repository/puppet_repo/manifests
|
210
210
|
modules_path: /repository/puppet_repo/modules-mycompany
|
211
211
|
hiera_data_path: /repository/puppet_repo/hieradata
|
212
212
|
hiera_writer_files:
|
213
213
|
- datacenter/vagrant.yaml:
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
214
|
+
logstash_servers: []
|
215
|
+
hosts:
|
216
|
+
10.1.2.3:
|
217
|
+
- puppet
|
218
|
+
- puppetdb
|
219
219
|
|
220
220
|
platforms:
|
221
221
|
- name: nocm_ubuntu-12.04
|
@@ -46,9 +46,9 @@ module Kitchen
|
|
46
46
|
class PuppetApply < Base
|
47
47
|
attr_accessor :tmp_dir
|
48
48
|
|
49
|
-
default_config :require_puppet_collections,
|
50
|
-
default_config :puppet_yum_collections_repo, 'http://yum.puppetlabs.com/
|
51
|
-
default_config :puppet_apt_collections_repo, 'http://apt.puppetlabs.com/
|
49
|
+
default_config :require_puppet_collections, true
|
50
|
+
default_config :puppet_yum_collections_repo, 'http://yum.puppetlabs.com/puppet5/puppet-release-el-6.noarch.rpm'
|
51
|
+
default_config :puppet_apt_collections_repo, 'http://apt.puppetlabs.com/puppet5-release-wheezy.deb'
|
52
52
|
default_config :puppet_coll_remote_path, '/opt/puppetlabs'
|
53
53
|
default_config :puppet_version, nil
|
54
54
|
default_config :facter_version, nil
|
@@ -78,7 +78,7 @@ module Kitchen
|
|
78
78
|
default_config :custom_pre_apply_command, nil
|
79
79
|
default_config :puppet_whitelist_exit_code, nil
|
80
80
|
default_config :require_puppet_omnibus, false
|
81
|
-
default_config :puppet_omnibus_url, 'https://raw.githubusercontent.com/petems/puppet-install-shell/master/
|
81
|
+
default_config :puppet_omnibus_url, 'https://raw.githubusercontent.com/petems/puppet-install-shell/master/install_puppet_5_agent.sh'
|
82
82
|
default_config :puppet_enc, nil
|
83
83
|
default_config :ignore_spec_fixtures, false
|
84
84
|
|
@@ -249,6 +249,8 @@ module Kitchen
|
|
249
249
|
$architecture = if( [Environment]::Is64BitOperatingSystem ) { '-x64' } else { '' }
|
250
250
|
if( '#{puppet_windows_version}' -eq 'latest' ) {
|
251
251
|
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet${architecture}-latest.msi"
|
252
|
+
} elseif( '#{puppet_windows_version}' -like '5.*' ) {
|
253
|
+
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet5/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
|
252
254
|
} else {
|
253
255
|
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-#{puppet_windows_version}${architecture}.msi"
|
254
256
|
}
|
@@ -338,13 +340,16 @@ module Kitchen
|
|
338
340
|
INSTALL
|
339
341
|
when /^windows.*/
|
340
342
|
info("Installing Puppet Collections on #{puppet_platform}")
|
343
|
+
info('Powershell is not recognised by core test-kitchen assuming it is present') unless powershell_shell?
|
341
344
|
<<-INSTALL
|
342
345
|
if(Get-Command puppet -ErrorAction 0) { return; }
|
343
346
|
$architecture = if( [Environment]::Is64BitOperatingSystem ) { 'x64' } else { 'x86' }
|
344
347
|
if( '#{puppet_windows_version}' -eq 'latest' ) {
|
345
348
|
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-${architecture}-latest.msi"
|
349
|
+
} elseif( '#{puppet_windows_version}' -like '5.*' ) {
|
350
|
+
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet5/puppet-agent-#{puppet_windows_version}-${architecture}.msi"
|
346
351
|
} else {
|
347
|
-
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-#{puppet_windows_version}
|
352
|
+
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-agent-#{puppet_windows_version}${architecture}.msi"
|
348
353
|
}
|
349
354
|
Invoke-WebRequest $MsiUrl -UseBasicParsing -OutFile "C:/puppet-agent.msi" #{posh_proxy_parm}
|
350
355
|
$process = Start-Process -FilePath msiexec.exe -Wait -PassThru -ArgumentList '/qn', '/norestart', '/i', 'C:\\puppet-agent.msi'
|
@@ -945,7 +950,7 @@ module Kitchen
|
|
945
950
|
end
|
946
951
|
|
947
952
|
def puppet_windows_version
|
948
|
-
config[:puppet_version] ? config[:puppet_version].to_s : '
|
953
|
+
config[:puppet_version] ? config[:puppet_version].to_s : '5.0.0'
|
949
954
|
end
|
950
955
|
|
951
956
|
def puppet_environment_flag
|
data/provisioner_options.md
CHANGED
@@ -9,15 +9,15 @@ It installs it in the following order:
|
|
9
9
|
|
10
10
|
Installs using the omnibus_puppet script and passes the puppet_version if specied as -v option.
|
11
11
|
|
12
|
-
* If require_puppet_collections is set to true
|
12
|
+
* If require_puppet_collections is set to true (the default)
|
13
13
|
|
14
14
|
Installs from the puppet collection.
|
15
|
-
This is required if you wish to install puppet version 4.
|
15
|
+
This is required if you wish to install puppet version 4 or 5.
|
16
16
|
|
17
17
|
You get the version of puppet in the collection. To influence which puppet version is install modify either
|
18
18
|
* puppet_yum_collections_repo
|
19
19
|
* puppet_apt_collections_repo
|
20
|
-
to an new collection. At time of writing there
|
20
|
+
to an new collection. At time of writing there are only 2 collections PC1 and puppet5.
|
21
21
|
|
22
22
|
* if require_puppet_repo is set to true (the default)
|
23
23
|
|
@@ -70,10 +70,10 @@ puppet_apt_repo | "http://apt.puppetlabs.com/puppetlabs-release-precise.deb"| ap
|
|
70
70
|
_for Ubuntu14 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-trusty.deb" |
|
71
71
|
_for Ubuntu15 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-jessie.deb" |
|
72
72
|
_for Ubuntu16.04 change to_ | "http://apt.puppetlabs.com/puppetlabs-release-xenial.deb" |
|
73
|
-
puppet_apt_collections_repo | "http://apt.puppetlabs.com/
|
74
|
-
_for Ubuntu14 change to_ | "http://apt.puppetlabs.com/
|
75
|
-
_for Ubuntu15 change to_ | "http://apt.puppetlabs.com/
|
76
|
-
_for Ubuntu16.04 change to_ | "http://apt.puppetlabs.com/
|
73
|
+
puppet_apt_collections_repo | "http://apt.puppetlabs.com/puppet5-release-wheezy.deb" | apt collections repo
|
74
|
+
_for Ubuntu14 change to_ | "http://apt.puppetlabs.com/puppet5-release-trusty.deb" |
|
75
|
+
_for Ubuntu15 change to_ | "http://apt.puppetlabs.com/puppet5-release-jessie.deb" |
|
76
|
+
_for Ubuntu16.04 change to_ | "http://apt.puppetlabs.com/puppet5-release-xenial.deb" |
|
77
77
|
puppet_coll_remote_path | "/opt/puppetlabs" | Server Installation location of a puppet collections install.
|
78
78
|
puppet_config_path | | path of custom puppet.conf file
|
79
79
|
puppet_debug| false| Enable full debugging logging on puppet run
|
@@ -90,7 +90,8 @@ puppet_future_parser | false | Run puppet with the future parser enabled (see h
|
|
90
90
|
puppet_git_init | nil | initialize puppet from GIT repository, e.g. "git@github.com:example/puppet-repo.git"
|
91
91
|
puppet_git_pr | nil | checkout specific Pull Request from repository specified in puppet_git_init, e.g. "324"
|
92
92
|
puppet_logdest | nil | _Array_ of log destinations. Include 'console' if wanted
|
93
|
-
puppet_omnibus_url | https://raw.githubusercontent.com/ petems/puppet-install-shell/ master/
|
93
|
+
puppet_omnibus_url | https://raw.githubusercontent.com/ petems/puppet-install-shell/ master/install_puppet_5_agent.sh | omnibus puppet v5 install location.
|
94
|
+
_for puppet v3 change to_ | https://raw.githubusercontent.com/ petems/puppet-install-shell/ master/install_puppet.sh |
|
94
95
|
_for puppet v4 change to_ | https://raw.githubusercontent.com/ petems/puppet-install-shell/ master/install_puppet_agent.sh |
|
95
96
|
puppet_noop| false| puppet runs in a no-op or dry-run mode
|
96
97
|
puppet_no_sudo | false | allow puppet command to run without sudo if required
|
@@ -100,12 +101,12 @@ puppet_version | "latest"| desired version, affects apt installs.
|
|
100
101
|
puppet_whitelist_exit_code | nil | Whitelist exit code expected from puppet run. Intended to be used together with `puppet_detailed_exitcodes`. You can also specify a yaml list here (you should use 0 and 2 for `puppet_detailed_exitcodes` to capture puppet runtime errors and allow multiple converge runs (without changes)).
|
101
102
|
puppet_yum_repo | "https://yum.puppetlabs.com/puppetlabs-release-el-6.noarch.rpm"| yum repo RH/Centos6
|
102
103
|
_for RH/Centos7 change to_ | "https://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm" |
|
103
|
-
puppet_yum_collections_repo | "http://yum.puppetlabs.com/
|
104
|
-
_for RH/Centos7 change to_ | "
|
104
|
+
puppet_yum_collections_repo | "http://yum.puppetlabs.com/puppet5/puppet-release-el-6.noarch.rpm" | yum collections repo RH/Centos6
|
105
|
+
_for RH/Centos7 change to_ | "http://yum.puppetlabs.com/puppet5/puppet-release-el-7.noarch.rpm" |
|
105
106
|
puppetfile_path | | Path to Puppetfile
|
106
107
|
remove_puppet_repo | false | remove copy of puppet repository and puppet configuration on server after running puppet
|
107
108
|
require_chef_for_busser | true | Install chef as currently needed by busser to run tests
|
108
|
-
require_puppet_collections |
|
109
|
+
require_puppet_collections | true | Set if using puppet collections install (Puppet v4)
|
109
110
|
require_puppet_omnibus | false | Set if using omnibus puppet install
|
110
111
|
require_puppet_repo | true | Set if using a puppet install from yum or apt repo
|
111
112
|
resolve_with_librarian_puppet | true | Use librarian_puppet to resolve modules if a Puppetfile is found
|
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:
|
4
|
+
version: 3.0.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: 2017-
|
11
|
+
date: 2017-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-kitchen
|