aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/modprobe.pp
blob: 99f7879581b96c8b43d11d9784a1a89e5dc6e5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class modprobe {
  # keep firewire disabled among other things
  case $lsbdistcodename {
    'lenny': {
      file { "/etc/modprobe.d/blacklist":
        owner   => "root",
        group   => "root",
        mode    => 0644,
        ensure  => present,
        source  => "puppet:///modules/nodo/etc/modprobe.d/blacklist.conf",
      }
    }
    default: {
      # upgrade from lenny
      file { "/etc/modprobe.d/blacklist":
        ensure => absent,
      }

      file { "/etc/modprobe.d/blacklist.conf":
        owner   => "root",
        group   => "root",
        mode    => 0644,
        ensure  => present,
        source  => "puppet:///modules/nodo/etc/modprobe.d/blacklist.conf",
      }
    }
  }
}