beaker_spec_helper 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/beaker_spec_helper.rb +0 -37
- data/lib/beaker_spec_helper/version.rb +1 -1
- 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: 8b3884228dc16f035a2cdfa747f5b4b0213d3229
|
4
|
+
data.tar.gz: 3768288d8e8e4fe50bfdc7f27a0cb1957c77bf06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd64afd74d6e45cce06f480848ca25c23cd3a36d3337d3d03c2fb11e36081f460a9737518b2f037bb1ee40e6fc670f4c769ee7203bae021f313d7f43ea06a7be
|
7
|
+
data.tar.gz: 805195a096277d21d10f7811dc3432c36de0dc66947b9c1fe6ea07f2bcfbfcdfee4a208721e6128d7eefe1482103ccfd8c72b9a0df3a1b1a8c2bb98e94f4db03
|
data/CHANGELOG.md
ADDED
data/lib/beaker_spec_helper.rb
CHANGED
@@ -1,42 +1,5 @@
|
|
1
1
|
module BeakerSpecHelper
|
2
2
|
|
3
|
-
hosts.each do |host|
|
4
|
-
# Workaround for Ubuntu utopic and vivid
|
5
|
-
if host['platform'] =~ /ubuntu-(14.10|15.04)/
|
6
|
-
# Ugly Monkey patching...
|
7
|
-
module Beaker::DSL::InstallUtils::PuppetUtils
|
8
|
-
def install_puppet_from_deb( host, opts )
|
9
|
-
if ! host.check_for_package 'lsb-release'
|
10
|
-
host.install_package('lsb-release')
|
11
|
-
end
|
12
|
-
|
13
|
-
if ! host.check_for_command 'curl'
|
14
|
-
on host, 'apt-get install -y curl'
|
15
|
-
end
|
16
|
-
|
17
|
-
on host, 'curl -O http://apt.puppetlabs.com/puppetlabs-release-trusty.deb'
|
18
|
-
on host, 'dpkg -i puppetlabs-release-trusty.deb'
|
19
|
-
on host, 'apt-get update'
|
20
|
-
|
21
|
-
if opts[:facter_version]
|
22
|
-
on host, "apt-get install -y facter=#{opts[:facter_version]}-1puppetlabs1"
|
23
|
-
end
|
24
|
-
|
25
|
-
if opts[:hiera_version]
|
26
|
-
on host, "apt-get install -y hiera=#{opts[:hiera_version]}-1puppetlabs1"
|
27
|
-
end
|
28
|
-
|
29
|
-
if opts[:version]
|
30
|
-
on host, "apt-get install -y puppet-common=#{opts[:version]}-1puppetlabs1"
|
31
|
-
on host, "apt-get install -y puppet=#{opts[:version]}-1puppetlabs1"
|
32
|
-
else
|
33
|
-
on host, 'apt-get install -y puppet'
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
3
|
###
|
41
4
|
# Copied/pasted/adapted from puppetlabs_spec_helper's lib/puppetlabs_spec_helper/rake_tasks.rb
|
42
5
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker_spec_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Camptocamp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05
|
11
|
+
date: 2015-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: beaker
|
@@ -33,6 +33,7 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
35
|
- ".gitignore"
|
36
|
+
- CHANGELOG.md
|
36
37
|
- Gemfile
|
37
38
|
- LICENSE
|
38
39
|
- README.md
|