Skip to content

Commit

Permalink
Update solaris to add pkg publisher
Browse files Browse the repository at this point in the history
The Solaris class only set up the repo, it didn't configure the pkg tool to use it.
  • Loading branch information
rstuart-indue authored Jul 13, 2023
1 parent 7a4eb58 commit a88e8ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/osfamily/solaris.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a88e8ab

Please sign in to comment.