beaker-puppet_install_helper 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +15 -0
- data/beaker-puppet_install_helper.gemspec +1 -1
- data/lib/beaker/puppet_install_helper.rb +13 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec929df57e9e89b0437647e33b6b5de9c39e05c5
|
|
4
|
+
data.tar.gz: af13f6d801db9af6f1e4331301aefb4a536a9cf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34c259057ac90949d402553098a775ff5845f68241684a4599f27b484da56f18ad864a9fbb2434e60b99cf5fd11e9126cc03c75c8500e950439de719e62bcafe
|
|
7
|
+
data.tar.gz: 3f71c81936136c1d16a8649048f264a6db35204e585cfd20b9ea97a1a831464c30c9f9c9dece882863550f9619e4abfc5fced19285a2ce43524bb938cc2c1795
|
data/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Copyright (C) 2015 Puppet Labs Inc
|
|
2
|
+
|
|
3
|
+
Puppet Labs can be contacted at: info@puppetlabs.com
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
@@ -9,11 +9,22 @@ module Beaker::PuppetInstallHelper
|
|
|
9
9
|
# - Type defaults to PE for PE nodes, and foss otherwise.
|
|
10
10
|
# - Version will default to the latest 3x foss/pe package, depending on type
|
|
11
11
|
def run_puppet_install_helper_on(hosts,type_arg=find_install_type,version=ENV["PUPPET_VERSION"])
|
|
12
|
-
# Short circuit based on rspec-system and beaker variables
|
|
13
|
-
return if ENV["RS_PROVISION"] == "no" or ENV["BEAKER_provision"] == "no"
|
|
14
12
|
|
|
15
13
|
type = type_arg || find_install_type
|
|
16
14
|
|
|
15
|
+
# Short circuit based on rspec-system and beaker variables
|
|
16
|
+
if ENV["RS_PROVISION"] == "no" or ENV["BEAKER_provision"] == "no"
|
|
17
|
+
Array(hosts).each do |host|
|
|
18
|
+
case type
|
|
19
|
+
when "pe"
|
|
20
|
+
configure_pe_defaults_on(host)
|
|
21
|
+
when /foss|agent/
|
|
22
|
+
configure_foss_defaults_on(host)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
return
|
|
26
|
+
end
|
|
27
|
+
|
|
17
28
|
# Example environment variables to be read:
|
|
18
29
|
# PUPPET_VERSION=3.8.1 <-- for foss/pe/gem
|
|
19
30
|
# PUPPET_VERSION=4.1.0 <-- for agent/gem
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: beaker-puppet_install_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puppetlabs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-06-
|
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -48,6 +48,7 @@ files:
|
|
|
48
48
|
- ".gitignore"
|
|
49
49
|
- ".travis.yml"
|
|
50
50
|
- Gemfile
|
|
51
|
+
- LICENSE
|
|
51
52
|
- README.md
|
|
52
53
|
- beaker-puppet_install_helper.gemspec
|
|
53
54
|
- lib/beaker/puppet_install_helper.rb
|