On 4/14/2009 10:23 PM, James Richardson wrote:
> Alternatively, what is the best practice for managing kernels on a
> debian system.
I won't call it a best practice, but I put all my kernels on hold and
upgrade them manually when needed.
exec { "hold-kernels":
command => "for name in `dpkg --get-selections | grep
linux-image | grep -v hold | awk '{print \$1}'`; do echo \$name hold |
dpkg --set-selections; done",
onlyif => "/usr/bin/dpkg --get-selections | /bin/grep
linux-image | /bin/grep -q install"
}
--
Mike Renfro / R&D Engineer, Center for Manufacturing Research,
931 372-3601 / Tennessee Technological University
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---