aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/initramfs.pp
blob: 27029c3a53266515f189e3ef81f9c42e4d80ab67 (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
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,
    alias       => 'update-initramfs',
  }
}