-class grub_install (
- $device = undef
-) {
+class base_installation::grub inherits base_installation {
ensure_packages(['grub'])
- # unless empty($device) {
+ # unless empty($base_installation::grub_device) {
# exec { 'install GRUB':
- # command => "/usr/bin/grub-install --target=i386-pc $device",
+ # command => "/usr/bin/grub-install --target=i386-pc $base_installation::device",
# subscribe => Package["grub"],
# }
# }
line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"',
match => '^GRUB_CMDLINE_LINUX='
}
- # file { "/etc/default/grub":
- # ensure => "present",
- # path => "/etc/default/grub",
- # source => 'puppet:///modules/grub_install/config',
- # mode => "0644",
- # owner => "root",
- # group => "root",
- # # notify => [Exec["install GRUB"], Exec["update GRUB config"]]
- # }
# exec { 'update GRUB config':
# command => "/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg",