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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd52ff8b7f59bda534df9bbc0994e961013c4148
4
- data.tar.gz: 601250b1a278c70c7531c864df56030cb737ed86
3
+ metadata.gz: ec929df57e9e89b0437647e33b6b5de9c39e05c5
4
+ data.tar.gz: af13f6d801db9af6f1e4331301aefb4a536a9cf4
5
5
  SHA512:
6
- metadata.gz: 3b00d10cb538f46ce75f169a45581905f019ef14cc19ca0a3908c5ba8b08500dc441cf195e7959b879ed1f3f0dc61b4ae86e7ed05d073a7c112c09c1c906441c
7
- data.tar.gz: d8587edaec5ac8b4938d03309dcd2acc777b7b54db1227fb5dbf18179b2f92791ef6081df25450977ae87086971560fb490a05c5479f8cf19ce99394e15cecc0
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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "beaker-puppet_install_helper"
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.authors = ["Puppetlabs"]
5
5
  s.email = ["hunter@puppetlabs.com"]
6
6
  s.homepage = "https://github.com/puppetlabs/beaker-puppet_install_helper"
@@ -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.0
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-19 00:00:00.000000000 Z
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