4 unless ENV['RS_PROVISION'] == 'no'
5 # This will install the latest available package on el and deb based
6 # systems fail on windows and osx, and install via gem on other *nixes
7 foss_opts = { :default_action => 'gem_install' }
9 if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
12 on host, "mkdir -p #{host['distmoduledir']}"
16 UNSUPPORTED_PLATFORMS = ['RedHat','Suse','windows','AIX','Solaris']
18 RSpec.configure do |c|
20 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
22 # Readable test descriptions
23 c.formatter = :documentation
25 # Configure all nodes in nodeset
27 # Install module and dependencies
29 copy_module_to(host, :source => proj_root, :module_name => 'apt')
30 shell("/bin/touch #{default['puppetpath']}/hiera.yaml")
31 on host, puppet('module install puppetlabs-stdlib --version 2.2.1'), { :acceptable_exit_codes => [0,1] }