We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6eb863 + 2023692 commit 9e8127bCopy full SHA for 9e8127b
1 file changed
spec/spec_helper_acceptance.rb
@@ -4,16 +4,15 @@
4
UNSUPPORTED_PLATFORMS = []
5
6
unless ENV['RS_PROVISION'] == 'no' or ENV['BEAKER_provision'] == 'no'
7
- if hosts.first.is_pe?
8
- install_pe
9
- on hosts, 'mkdir -p /etc/puppetlabs/facter/facts.d'
10
- else
11
- install_puppet
12
- on hosts, 'mkdir -p /etc/facter/facts.d'
13
- on hosts, '/bin/touch /etc/puppet/hiera.yaml'
14
- end
+ # This will install the latest available package on el and deb based
+ # systems fail on windows and osx, and install via gem on other *nixes
+ foss_opts = { :default_action => 'gem_install' }
+
+ if default.is_pe?; then install_pe; else install_puppet( foss_opts ); end
15
hosts.each do |host|
16
on host, "mkdir -p #{host['distmoduledir']}"
+ on host, "/bin/touch #{default['puppetpath']}/hiera.yaml"
17
end
18
19
0 commit comments