|
4 | 4 | UNSUPPORTED_PLATFORMS = [] |
5 | 5 |
|
6 | 6 | unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no' |
7 | | - # This will install the latest available package on el and deb based |
8 | | - # systems fail on windows and osx, and install via gem on other *nixes |
9 | | - foss_opts = { :default_action => 'gem_install' } |
| 7 | + foss_opts = { |
| 8 | + :default_action => 'gem_install', |
| 9 | + :version => (ENV['PUPPET_VERSION'] ? ENV['PUPPET_VERSION'] : '3.7.2'), |
| 10 | + } |
10 | 11 |
|
11 | 12 | if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end |
12 | 13 |
|
13 | 14 | hosts.each do |host| |
14 | | - on host, "mkdir -p #{host['distmoduledir']}" |
15 | | - on host, "/bin/touch #{host['puppetpath']}/hiera.yaml" |
| 15 | + if host['platform'] !~ /windows/i |
| 16 | + if host.is_pe? |
| 17 | + on host, 'mkdir -p /etc/puppetlabs/facter/facts.d' |
| 18 | + else |
| 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' |
| 22 | + end |
| 23 | + end |
16 | 24 | end |
17 | 25 | end |
18 | 26 |
|
|
29 | 37 | default[:default_apply_opts] ||= {} |
30 | 38 | default[:default_apply_opts].merge!({:parser => 'future'}) |
31 | 39 | end |
32 | | - hosts.each do |host| |
33 | | - if host['platform'] !~ /windows/i |
34 | | - copy_root_module_to(host, :source => proj_root, :module_name => 'stdlib') |
35 | | - end |
36 | 40 |
|
37 | | - end |
38 | | - hosts.each do |host| |
39 | | - if host['platform'] =~ /windows/i |
40 | | - on host, puppet('plugin download') |
41 | | - end |
42 | | - end |
| 41 | + copy_root_module_to(default, :source => proj_root, :module_name => 'stdlib') |
43 | 42 | end |
44 | 43 | end |
45 | 44 |
|
|
0 commit comments