From c0c38faca2843d5f7b0c9b11a3a2abdfd2bd2d45 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 31 Jan 2013 15:30:44 -0200 Subject: PAM and initramfs config for wheezy --- manifests/subsystems/initramfs.pp | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'manifests/subsystems/initramfs.pp') diff --git a/manifests/subsystems/initramfs.pp b/manifests/subsystems/initramfs.pp index 0a8d49b..58e5c71 100644 --- a/manifests/subsystems/initramfs.pp +++ b/manifests/subsystems/initramfs.pp @@ -1,4 +1,6 @@ -class initramfs { +class initramfs( + $keymap = hiera('nodo::initramfs::keymap', 'absent') +) { # initramfs config file { "/etc/kernel-img.conf": owner => "root", @@ -17,9 +19,30 @@ class initramfs { source => "puppet:///modules/nodo/etc/initramfs-tools/modules", } + # keymap + file { "/etc/initramfs-tools/conf.d/keymap.conf": + ensure => $keymap, + content => "KEYMAP=Y\n", + owner => "root", + group => "root", + mode => 0644, + } + + # keyboard + # see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=619711 + file { "/etc/default/keyboard": + ensure => present, + owner => "root", + group => "root", + mode => 0644, + } + # update initramfs when needed exec { "update-initramfs -v -t -u": - subscribe => [ File["/etc/initramfs-tools/modules"], File["/etc/modprobe.d/blacklist"] ], + subscribe => [ File["/etc/initramfs-tools/modules"], + File["/etc/modprobe.d/blacklist"], + File["/etc/initramfs-tools/conf.d/keymap.conf"], + File["/etc/default/keyboard"] ], refreshonly => true, alias => 'update-initramfs', } -- cgit v1.2.3