7 on host, "mkdir -p #{host['distmoduledir']}"
10 RSpec.configure do |c|
12 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
14 # Readable test descriptions
15 c.formatter = :documentation
17 # Configure all nodes in nodeset
19 # Install module and dependencies
23 install_package host, 'git'
25 # clean out any module cruft
26 shell('rm -fr /etc/puppet/modules/*')
28 # install library modules from the forge
29 on host, puppet('module','install','puppetlabs-mysql'), { :acceptable_exit_codes => 0 }
30 on host, puppet('module','install','puppetlabs-apache'), { :acceptable_exit_codes => 0 }
31 on host, puppet('module','install','puppetlabs-postgresql'), { :acceptable_exit_codes => 0 }
32 on host, puppet('module','install','stahnma-epel'), { :acceptable_exit_codes => 0 }
33 # until https://github.com/tamaskozak/puppetlabs-rabbitmq/commit/8bbfe320035fae2ae900211501008d63dc3c171c is part of a release
34 shell('git clone https://github.com/puppetlabs/puppetlabs-rabbitmq /etc/puppet/modules/rabbitmq')
35 shell('git clone https://git.openstack.org/openstack/puppet-openstack_extras /etc/puppet/modules/openstack_extras')
36 # Install the module being tested
37 puppet_module_install(:source => proj_root, :module_name => 'openstacklib')
38 # List modules installed to help with debugging
39 on hosts[0], puppet('module','list'), { :acceptable_exit_codes => 0 }