puppet-midonet/spec/spec_helper_acceptance.rb
Jaume Devesa 675eb25a8c Deprecate MidoNet's puppet-zookeeper
Several changes to deprecate the MidoNet's zookeeper module. Deric's
Zookeeper:

  https://github.com/deric/puppet-zookeeper

Is well mantained and it has much more functionality. So the commit
replaces the dependencies and sets some changes to adapt to the new
module.

I have kept the ::midonet::zookeeper manifest to maintain backwards
compatiblity with tools that use MidoNet 2015.01 version.

So the ::midonet::zookeeper manifest is just a gangway to the actual's
deric one now.

Change-Id: I6e6ebe8c9fea2e3d3195d9890b1c89362bd23d58
2015-07-15 18:23:10 +02:00

33 lines
1.4 KiB
Ruby

require 'beaker-rspec'
require 'beaker/puppet_install_helper'
run_puppet_install_helper
UNSUPPORTED_PLATFORMS = ['Suse','windows','AIX','Solaris']
RSpec.configure do |c|
# Project root
proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
# Readable test descriptions
c.formatter = :documentation
# Configure all nodes in nodeset
c.before :suite do
# Install module and dependencies
hosts.each do |host|
copy_module_to(host, :source => proj_root, :module_name => 'midonet')
scp_to(host, proj_root + '/data/hiera.yaml', "#{default['puppetpath']}/hiera.yaml")
shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
on host, puppet('module install ripienaar-module_data'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install puppetlabs-stdlib --version 4.5.0'), { :acceptable_exit_codes => [0,1] }
on host, puppet('module install deric-zookeeper'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install midonet-cassandra'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install puppetlabs-inifile'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install puppetlabs-apt'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install puppetlabs-java'), {:acceptable_exit_codes => [0,1] }
on host, puppet('module install puppetlabs-tomcat'), {:acceptable_exit_codes => [0,1] }
end
end
end