From a2f1134cda02da226967e437dd702ec4ece82747 Mon Sep 17 00:00:00 2001 From: Amit Karsale Date: Fri, 22 Mar 2024 00:30:18 +0530 Subject: [PATCH] (PA-6003) Add SLES 11 (x86_64) platform definition to puppet-agent-main --- configs/components/pxp-agent.rb | 2 +- configs/platforms/sles-11-x86_64.rb | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 configs/platforms/sles-11-x86_64.rb diff --git a/configs/components/pxp-agent.rb b/configs/components/pxp-agent.rb index 5494ccc41a..f5a59e4879 100644 --- a/configs/components/pxp-agent.rb +++ b/configs/components/pxp-agent.rb @@ -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 -"] diff --git a/configs/platforms/sles-11-x86_64.rb b/configs/platforms/sles-11-x86_64.rb new file mode 100644 index 0000000000..67e457799a --- /dev/null +++ b/configs/platforms/sles-11-x86_64.rb @@ -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 \ No newline at end of file