Created
February 24, 2012 23:56
-
-
Save jaredcurtis/1904714 to your computer and use it in GitHub Desktop.
rebuild kernel module on update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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