From 7fed35a408b9ec37454169425823785b5fc8978b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 24 Aug 2017 02:22:17 +0200 Subject: Refactor base installation module --- modules/base_installation/manifests/grub.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 modules/base_installation/manifests/grub.pp (limited to 'modules/base_installation/manifests/grub.pp') diff --git a/modules/base_installation/manifests/grub.pp b/modules/base_installation/manifests/grub.pp new file mode 100644 index 0000000..0a96aa7 --- /dev/null +++ b/modules/base_installation/manifests/grub.pp @@ -0,0 +1,21 @@ +class base_installation::grub inherits base_installation { + ensure_packages(['grub']) + + # unless empty($base_installation::grub_device) { + # exec { 'install GRUB': + # command => "/usr/bin/grub-install --target=i386-pc $base_installation::device", + # subscribe => Package["grub"], + # } + # } + + file_line { "/etc/default/grub#GRUB_CMDLINE_LINUX": + path => "/etc/default/grub", + line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"', + match => '^GRUB_CMDLINE_LINUX=' + } + + # exec { 'update GRUB config': + # command => "/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg", + # refreshonly => true + # } +} -- cgit v1.2.3