I've got a situation where I need to remove a set of packages and then
install the upgraded versions. I can't just upgrade. It's rare that I
have to upgrade the software but I'd like to have something in place to
upgrade when I have to. What's the best way to handle these types of
situations with Puppet?
Is there anyway to force $purge_pkgs to run and then have $install_pkgs run
after on the same run? As written below, I think what happens is the
packages are uninstalled but when the compile runs, $install_pkgs are
already installed, so it does nothing.
Class upgrade:
-----------------------------------------
if $upg == 'yes' {
package { $purge_pkgs:
ensure => 'purged',
install_options => '-y',
}
}
package { $install_pkgs:
ensure => installed,
install_options => '-y',
}
Bunch of other bits run.........
------------------------------------------
Any advice appreciated.
Thanks,
--
Kent
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CA%2BnSE38fD8XVEeb74CKmFyBhcw5-syMj%3DL-XMu%3Dk0pPUhvOSUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.