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

refactor according to new style

parent 7227647d
......@@ -14,12 +14,12 @@
class modprobe {
file{'/etc/modprobe.conf':
source => [
"puppet://$server/files/modprobe/${fqdn}/modprobe.conf",
"puppet://$server/files/modprobe/${virtual}/modprobe.conf",
"puppet://$server/files/modprobe/${operatingsystem}/modprobe.conf",
"puppet://$server/files/modprobe/modprobe.conf",
"puppet://$server/modprobe/${virtual}/modprobe.conf",
"puppet://$server/modprobe/${operatingsystem}/modprobe.conf",
"puppet://$server/site-modprobe/$fqdn/modprobe.conf",
"puppet://$server/site-modprobe/$virtual/modprobe.conf",
"puppet://$server/site-modprobe/$operatingsystem/modprobe.conf",
"puppet://$server/site-modprobe/modprobe.conf",
"puppet://$server/modprobe/$virtual/modprobe.conf",
"puppet://$server/modprobe/$operatingsystem/modprobe.conf",
"puppet://$server/modprobe/modprobe.conf",
],
owner => root, group => 0, mode => 0644;
......
......@@ -2,8 +2,12 @@ define modprobe::kern_module(
$ensure = 'present'
){
case $operatingsystem {
debian,ubuntu: { $modulesfile = '/etc/modules' }
default: { $modulesfile = '/etc/rc.modules' }
debian,ubuntu: {
$modulesfile = '/etc/modules'
}
default: {
$modulesfile = '/etc/rc.modules'
}
}
case $ensure {
present: {
......
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