From a88e8abeaf70f9e2ff85a2cf1ade214a84436f0d Mon Sep 17 00:00:00 2001 From: rstuart-indue <34758619+rstuart-indue@users.noreply.github.com> Date: Thu, 13 Jul 2023 11:57:35 +1000 Subject: [PATCH] Update solaris to add pkg publisher The Solaris class only set up the repo, it didn't configure the pkg tool to use it. --- manifests/osfamily/solaris.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifests/osfamily/solaris.pp b/manifests/osfamily/solaris.pp index dd45cb36..60afc2d2 100644 --- a/manifests/osfamily/solaris.pp +++ b/manifests/osfamily/solaris.pp @@ -107,6 +107,12 @@ logoutput => 'on_failure', refreshonly => true, } + ~> exec { 'puppet_agent add publisher to pkg': + command => "pkg set-publisher -e -g ${pkgrepo_dir} ${publisher}", + path => '/bin:/usr/bin:/sbin:/usr/sbin', + logoutput => 'on_failure', + refreshonly => true, + } # Make sure the pkg publishers are all available. Broken # publisher entries will stop the installation process. # This must happen before removing any packages.