Commit 08216904 authored by Simon Josi's avatar Simon Josi
Browse files

fix dependency cycles

parent f6f5959b
# manifest/defines.pp
# taken from: http://reductivelabs.com/trac/puppet/wiki/Recipes/KernelModules
define modprobe::kern_module(
$ensure = 'present'
){
include modprobe::modulesfile
case $operatingsystem {
debian,ubuntu: {
$modulesfile = '/etc/modules'
File['/etc/rc.module']{
path => '/etc/modules',
}
}
default: {
$modulesfile = '/etc/rc.modules'
}
debian,ubuntu: { $modulesfile = '/etc/modules' }
default: { $modulesfile = '/etc/rc.modules' }
}
case $ensure {
present: {
......
class modprobe::modulesfile {
file{'/etc/rc.modules':
ensure => file,
owner => root, group => 0, mode => 755;
case $operatingsystem {
debian,ubuntu: {
file{'/etc/modules':
ensure => file,
owner => root, group => 0, mode => 755;
}
}
default: {
file{'/etc/rc.modules':
ensure => file,
owner => root, group => 0, mode => 755;
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment