Puppet Class: grub::defaults

Defined in:
modules/grub/manifests/defaults.pp

Overview



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'modules/grub/manifests/defaults.pp', line 14

class grub::defaults {
    include ::grub

    augeas { 'grub2':
        incl    => '/etc/default/grub',
        lens    => 'Shellvars_list.lns',
        changes => [
                    # set terminal; default usually is just serial
                    'set GRUB_TERMINAL/quote \'"\'',
                    'set GRUB_TERMINAL/value[1] console',
                    'set GRUB_TERMINAL/value[2] serial',
                    # removes quiet, splash from default kopts
                    'rm GRUB_CMDLINE_LINUX_DEFAULT/value[. = "quiet"]',
                    'rm GRUB_CMDLINE_LINUX_DEFAULT/value[. = "splash"]',
                    ],
        notify  => Exec['update-grub'],
    }
}