Can puppet manage kernel customization on RedHat ? I have some third-party gahrbaj that needs its own kernel level driver to work. And, or course, every time the kerner version bumps up, it breaks until you rebuild the custom stuff into the new kernel. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jared Curtis
2012-Feb-24 23:54 UTC
[Puppet Users] Re: Puppet on RedHat - Manage Kernel Modules ?
I haven''t tested this but it should work.
class kernel(version=''latest'')
{
package { ''rhel-
kernel'':
ensure =>
$version,
alias =>
kernel,
notify => Exec[''rebuild
gahrbaj''],
}
exec { ''rebuild
gahrbaj'':
cwd => ''/foo/bar/
gahrbaj'',
command => ''/usr/bin/make; /usr/bin/make install; modprobe
gahrbaj'', # commands to bulid and install
mdoule
unless => ''/bin/grep gahrbaj /proc/modules'', #
check if
module is loaded, if so don''t
rebuild
require => Package[''rhel-
kernel''],
refreshonly => true, # only attempt if rhel-kernel has been
updated
}
}
You would use it like this
node example.com {
class { ''kernel'':
version => ''3.2.7'',
}
}
When you want to upgrade the kernel you would bump the version to the
next release. When puppet runs it will upgrade the kernel and the next
reboot puppet will detect that the module isn''t loaded and then
rebuild and install the module.
On Feb 24, 8:02 am, Dan White <y...@comcast.net>
wrote:> Can puppet manage kernel customization on RedHat ?
> I have some third-party gahrbaj that needs its own kernel level driver to
work.
>
> And, or course, every time the kerner version bumps up, it breaks until you
rebuild the custom stuff into the new kernel.
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.”
> Bill Waterson (Calvin & Hobbes)
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Jared Curtis
2012-Feb-24 23:57 UTC
[Puppet Users] Re: Puppet on RedHat - Manage Kernel Modules ?
Sorry about the format, try this https://gist.github.com/1904714 On Feb 24, 3:54 pm, Jared Curtis <ja...@shift-e.info> wrote:> I haven''t tested this but it should work. > > class kernel(version=''latest'') > { > package { ''rhel- > kernel'': > ensure => > $version, > alias => > kernel, > notify => Exec[''rebuild > gahrbaj''], > } > > exec { ''rebuild > gahrbaj'': > cwd => ''/foo/bar/ > gahrbaj'', > command => ''/usr/bin/make; /usr/bin/make install; modprobe > gahrbaj'', # commands to bulid and install > mdoule > unless => ''/bin/grep gahrbaj /proc/modules'', # check if > module is loaded, if so don''t > rebuild > require => Package[''rhel- > kernel''], > refreshonly => true, # only attempt if rhel-kernel has been > updated > } > > } > > You would use it like this > node example.com { > class { ''kernel'': > version => ''3.2.7'', > } > > } > > When you want to upgrade the kernel you would bump the version to the > next release. When puppet runs it will upgrade the kernel and the next > reboot puppet will detect that the module isn''t loaded and then > rebuild and install the module. > > On Feb 24, 8:02 am, Dan White <y...@comcast.net> wrote: > > > > > > > > > Can puppet manage kernel customization on RedHat ? > > I have some third-party gahrbaj that needs its own kernel level driver to work. > > > And, or course, every time the kerner version bumps up, it breaks until you rebuild the custom stuff into the new kernel. > > > “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” > > Bill Waterson (Calvin & Hobbes)-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Markus Falb
2012-Feb-25 20:05 UTC
Re: [Puppet Users] Puppet on RedHat - Manage Kernel Modules ?
On 24.2.2012 17:02, Dan White wrote:> Can puppet manage kernel customization on RedHat ? > I have some third-party gahrbaj that needs its own kernel level driver to work. > > And, or course, every time the kerner version bumps up, it breaks until you rebuild the custom stuff into the new kernel.Because RHEL tries to preserve the Kernel ABI it should be possible to build modules kernel version agnostic. http://wiki.centos.org/HowTos/BuildingKernelModules?highlight=%28kmod%29 http://wiki.centos.org/HowTos/Custom_Kernel -- Kind Regards, Markus Falb