|
@@ -2,16 +2,14 @@ require 'beaker-rspec/spec_helper'
|
|
|
require 'beaker-rspec/helpers/serverspec'
|
|
|
|
|
|
unless ENV['RS_PROVISION'] == 'no'
|
|
|
+ if hosts.first.is_pe?
|
|
|
+ install_pe
|
|
|
+ else
|
|
|
+ install_puppet
|
|
|
+ end
|
|
|
hosts.each do |host|
|
|
|
if host['platform'] =~ /debian/
|
|
|
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
|
|
|
- end
|
|
|
- if host.is_pe?
|
|
|
- install_pe
|
|
|
- else
|
|
|
- # Install Puppet
|
|
|
- install_package host, 'rubygems'
|
|
|
- on host, 'gem install puppet --no-ri --no-rdoc'
|
|
|
on host, "mkdir -p #{host['distmoduledir']}"
|
|
|
end
|
|
|
end
|