1 #! /usr/bin/env ruby -S rspec
4 UNSUPPORTED_PLATFORMS = []
6 unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
8 :default_action => 'gem_install',
9 :version => (ENV['PUPPET_VERSION'] ? ENV['PUPPET_VERSION'] : '3.7.2'),
12 if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
15 if host['platform'] !~ /windows/i
17 on host, 'mkdir -p /etc/puppetlabs/facter/facts.d'
19 on host, "/bin/touch #{host['puppetpath']}/hiera.yaml"
20 on host, "mkdir -p #{host['distmoduledir']}"
21 on host, 'mkdir -p /etc/facter/facts.d'
27 RSpec.configure do |c|
29 proj_root = File.expand_path(File.join(File.dirname(__FILE__), '..'))
31 # Readable test descriptions
32 c.formatter = :documentation
34 # Configure all nodes in nodeset
36 if ENV['FUTURE_PARSER'] == 'true'
37 default[:default_apply_opts] ||= {}
38 default[:default_apply_opts].merge!({:parser => 'future'})
41 copy_root_module_to(default, :source => proj_root, :module_name => 'stdlib')
45 def is_future_parser_enabled?
46 if default[:default_apply_opts]
47 return default[:default_apply_opts][:parser] == 'future'