Skip to content

Commit

Permalink
adding augeas_core for acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcmaw committed Sep 26, 2018
1 parent 36cba3a commit f1089e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,14 @@ def latest_daemon_version(tomcat_version)
# Configure all nodes in nodeset
c.before :suite do
hosts.each do |host|
puppet_version = (on host, 'puppet --version').output.strip
on host, puppet('module', 'install', 'puppetlabs-java'), acceptable_exit_codes: [0, 1]
on host, puppet('module', 'install', 'puppetlabs-gcc'), acceptable_exit_codes: [0, 1]
if Gem::Version.new(puppet_version) == Gem::Version.new('6.0.0')
on host, puppet('module', 'install', 'puppetlabs-augeas_core'), acceptable_exit_codes: [0, 1]
elsif Gem::Version.new(puppet_version) > Gem::Version.new('6.0.0')
fail("We no longer need to install puppetlabs-augeas_core, please remove this from spec_helper_acceptance.")
end
if fact('osfamily') == 'RedHat'
on host, 'yum install -y nss'
end
Expand Down

0 comments on commit f1089e0

Please sign in to comment.