|
1 | 1 | require 'beaker-rspec/spec_helper'
|
2 | 2 | require 'beaker-rspec/helpers/serverspec'
|
| 3 | +require 'beaker/puppet_install_helper' |
3 | 4 |
|
4 |
| -UNSUPPORTED_PLATFORMS = [] |
5 |
| - |
6 |
| -unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no' |
7 |
| - # This will install the latest available package on el and deb based |
8 |
| - # systems fail on windows and osx, and install via gem on other *nixes |
9 |
| - foss_opts = { |
10 |
| - :default_action => 'gem_install', |
11 |
| - :version => (ENV['PUPPET_VERSION'] || '3.8.1'), |
12 |
| - } |
13 |
| - if default.is_pe?; then |
14 |
| - install_pe; |
15 |
| - else |
16 |
| - install_puppet(foss_opts); |
17 |
| - end |
| 5 | +run_puppet_install_helper |
18 | 6 |
|
19 |
| - hosts.each do |host| |
20 |
| - if not host.is_pe? and host['platform'] !~ /windows/i |
21 |
| - on host, 'puppet master' |
22 |
| - on host, "mkdir -p #{host['distmoduledir']}" |
23 |
| - elsif host["platform"] =~ /solaris/ |
24 |
| - on host, "echo 'export PATH=/opt/puppet/bin:/var/ruby/1.8/gem_home/bin:${PATH}' >> ~/.bashrc" |
25 |
| - elsif host.is_pe? |
26 |
| - on host, "echo 'export PATH=#{host['puppetbindir']}:${PATH}' >> ~/.bashrc" |
27 |
| - end |
28 |
| - on host, "mkdir -p #{host['distmoduledir']}" |
29 |
| - end |
30 |
| -end |
| 7 | +UNSUPPORTED_PLATFORMS = [] |
31 | 8 |
|
32 | 9 | def create_keys_for_test(host)
|
33 | 10 | # Generate private key and CA for keystore
|
|
0 commit comments