Fixes to get tests running on trusty.
This commit is contained in:
parent
98f4dc5087
commit
33b90b4fbc
2 changed files with 18 additions and 9 deletions
11
spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
Normal file
11
spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
HOSTS:
|
||||||
|
ubuntu-server-1404-x64:
|
||||||
|
roles:
|
||||||
|
- master
|
||||||
|
platform: ubuntu-14.04-amd64
|
||||||
|
box : puppetlabs/ubuntu-14.04-64-nocm
|
||||||
|
box_url : https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
|
||||||
|
hypervisor : vagrant
|
||||||
|
CONFIG:
|
||||||
|
log_level : debug
|
||||||
|
type: git
|
|
@ -1,19 +1,17 @@
|
||||||
require 'beaker-rspec/spec_helper'
|
require 'beaker-rspec/spec_helper'
|
||||||
require 'beaker-rspec/helpers/serverspec'
|
require 'beaker-rspec/helpers/serverspec'
|
||||||
|
|
||||||
unless ENV['RS_PROVISION'] == 'no'
|
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
|
||||||
|
if hosts.first.is_pe?
|
||||||
|
install_pe
|
||||||
|
else
|
||||||
|
install_puppet
|
||||||
|
end
|
||||||
hosts.each do |host|
|
hosts.each do |host|
|
||||||
if host['platform'] =~ /debian/
|
if host['platform'] =~ /debian/
|
||||||
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
|
on host, 'echo \'export PATH=/var/lib/gems/1.8/bin/:${PATH}\' >> ~/.bashrc'
|
||||||
end
|
end
|
||||||
if host.is_pe?
|
on hosts, "mkdir -p #{host['distmoduledir']}"
|
||||||
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
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue