Skip to content

Commit

Permalink
Merge pull request #349 from DavidS/revert-spec-helper-acceptance
Browse files Browse the repository at this point in the history
Revert changes to spec_helper_acceptance
  • Loading branch information
tphoney committed Oct 19, 2016
2 parents d073a4e + 0725ead commit 3545542
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions spec/spec_helper_acceptance.rb
Expand Up @@ -13,9 +13,23 @@
environmentpath = host.puppet['environmentpath']
environmentpath = environmentpath.split(':').first if environmentpath

destdir = "#{environmentpath}/production/modules"
on host, "git clone -b master https://github.com/puppetlabs/puppetlabs-stdlib #{destdir}/stdlib"
on host, "git clone -b master https://github.com/voxpupuli/puppet-tea #{destdir}/tea"
# Solaris 11 doesn't ship the SSL CA root for the forgeapi server
# therefore we need to use a different way to deploy the module to
# the host
if host['platform'] =~ /solaris-11/i
apply_manifest_on(host, 'package { "git": }')
# PE 3.x and 2015.2 require different locations to install modules
modulepath = host.puppet['modulepath']
modulepath = modulepath.split(':').first if modulepath

environmentpath = host.puppet['environmentpath']
environmentpath = environmentpath.split(':').first if environmentpath

destdir = modulepath || "#{environmentpath}/production/modules"
on host, "git clone -b 4.13.0 https://github.com/puppetlabs/puppetlabs-stdlib #{destdir}/stdlib"
else
on host, puppet('module install puppetlabs-stdlib')
end

# Need to disable update of ntp servers from DHCP, as subsequent restart of ntp causes test failures
if fact_on(host, 'osfamily') == 'Debian'
Expand Down

0 comments on commit 3545542

Please sign in to comment.