blob: 3b37f65c44c7987aff565e4dee9c9b4d22c3232b (
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
|
class initramfs {
# initramfs config
file { "/etc/kernel-img.conf":
owner => "root",
group => "root",
mode => 0644,
ensure => present,
content => "do_initrd = Yes\n",
}
# initramfs config
file { "/etc/initramfs-tools/modules":
owner => "root",
group => "root",
mode => 0644,
ensure => present,
source => "puppet://$server/modules/nodo/etc/initramfs-tools/modules",
}
# update initramfs when needed
exec { "update-initramfs -v -u":
subscribe => [ File["/etc/initramfs-tools/modules"], File["/etc/modprobe.d/blacklist"] ],
refreshonly => true,
}
}
|