Skip to content

Commit 1aa7ae8

Browse files
committed
(maint) Add SLES acceptance testing
1 parent dd112c1 commit 1aa7ae8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

spec/spec_helper_acceptance.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
on host, 'dpkg -i puppetlabs-release-pc1-$(lsb_release -c -s).deb'
2525
on host, 'apt-get -y -m update'
2626
on host, 'apt-get install -y puppetserver'
27+
elsif host['platform'] =~ %r{sles-(11|12)}
28+
relver = Regexp.last_match(1)
29+
on host, "sudo zypper ar http://yum.puppetlabs.com/puppet5/sles/#{relver}/x86_64/ puppet"
30+
on host, 'sudo zypper -n in puppetserver'
2731
else
2832
raise "install_puppet() called for unsupported platform '#{host['platform']}' on '#{host.name}'"
2933
end

0 commit comments

Comments
 (0)