Skip to content

Instantly share code, notes, and snippets.

@jaredcurtis
Created February 24, 2012 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredcurtis/1904714 to your computer and use it in GitHub Desktop.
Save jaredcurtis/1904714 to your computer and use it in GitHub Desktop.
rebuild kernel module on update
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', # commands to bulid and install module
require => Package['rhel-kernel'],
refreshonly => true, # only attempt if rhel-kernel has been updated
}
}
node example.com {
class { 'kernel':
version => '3.2.7'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment