Skip to content

Commit

Permalink
(PA-6003) Add SLES 11 (x86_64) platform definition to puppet-agent-main
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkarsale committed Mar 21, 2024
1 parent f1884b9 commit 2600173
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/components/pxp-agent.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"location":"https://builds.delivery.puppetlabs.net/pxp-agent/202403192/artifacts/","version":"202403192"}
{"location":"https://builds.delivery.puppetlabs.net/pxp-agent/202403201/artifacts/","version":"202403201"}
2 changes: 1 addition & 1 deletion configs/components/pxp-agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tar -xzf #{tarball_name}",
"for d in opt var private; do rsync -ka --ignore-existing \"$${d}/\" \"/$${d}/\"; done"
]
elsif platform.is_aix? || platform.is_solaris?
elsif platform.is_aix? || platform.is_solaris? || platform.name =~ /sles-11-x86_64/
install_command = ["gunzip -c #{tarball_name} | #{platform.tar} -C / -xf -"]
else
install_command = ["gunzip -c #{tarball_name} | #{platform.tar} --skip-old-files -C / -xf -"]
Expand Down
10 changes: 10 additions & 0 deletions configs/platforms/sles-11-x86_64.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
platform "sles-11-x86_64" do |plat|
plat.servicedir "/etc/init.d"
plat.defaultdir "/etc/sysconfig"
plat.servicetype "sysv"
plat.add_build_repository "http://osmirror.delivery.puppetlabs.net/sles-11-deps-x86_64/sles-11-deps-x86_64.repo"
plat.add_build_repository "http://pl-build-tools.delivery.puppetlabs.net/yum/sles/11/x86_64/pl-build-tools-sles-11-x86_64.repo"
plat.provision_with "zypper -n --no-gpg-checks install -y make rsync"
plat.install_build_dependencies_with "zypper -n --no-gpg-checks install -y"
plat.vmpooler_template "sles-11-x86_64"
end

0 comments on commit 2600173

Please sign in to comment.