init.pp 879 Bytes
Newer Older
Simon Josi's avatar
Simon Josi committed
1
#
Marcel Haerry's avatar
Marcel Haerry committed
2
# modprobe module
Simon Josi's avatar
Simon Josi committed
3
4
5
6
7
8
9
10
11
12
#
# Copyright 2008, Puzzle ITC GmbH
# Marcel Härry haerry+puppet(at)puzzle.ch
# Simon Josi josi+puppet(at)puzzle.ch
#
# This program is free software; you can redistribute 
# it and/or modify it under the terms of the GNU 
# General Public License version 3 as published by 
# the Free Software Foundation.
#
Marcel Haerry's avatar
Marcel Haerry committed
13

Simon Josi's avatar
Simon Josi committed
14
class modprobe {
15
16
17
18
19
20
21
22
23
24
25
26
  file{'/etc/modprobe.conf':
    source => [
      "puppet:///modules/site-modprobe/$fqdn/modprobe.conf",
      "puppet:///modules/site-modprobe/$virtual/modprobe.conf",
      "puppet:///modules/site-modprobe/$operatingsystem/modprobe.conf",
      "puppet:///modules/site-modprobe/modprobe.conf",
      "puppet:///modules/modprobe/$virtual/modprobe.conf",
      "puppet:///modules/modprobe/$operatingsystem/modprobe.conf",
      "puppet:///modules/modprobe/modprobe.conf",
    ],
    owner => root, group => 0, mode => 0644;
  }
Marcel Haerry's avatar
Marcel Haerry committed
27
}