diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-24 02:22:17 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-08-29 22:46:14 +0200 |
commit | 7fed35a408b9ec37454169425823785b5fc8978b (patch) | |
tree | 28371d43ac304f99fb0a5305124858db69ef2137 /modules/base_installation/manifests/grub.pp | |
parent | ba2cf1b5d938810077b0fd73844faf432e8e8f9d (diff) | |
download | Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.gz Puppet-7fed35a408b9ec37454169425823785b5fc8978b.tar.zst Puppet-7fed35a408b9ec37454169425823785b5fc8978b.zip |
Refactor base installation module
Diffstat (limited to 'modules/base_installation/manifests/grub.pp')
-rw-r--r-- | modules/base_installation/manifests/grub.pp | 21 |
1 files changed, 21 insertions, 0 deletions
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 @@ | |||
1 | class base_installation::grub inherits base_installation { | ||
2 | ensure_packages(['grub']) | ||
3 | |||
4 | # unless empty($base_installation::grub_device) { | ||
5 | # exec { 'install GRUB': | ||
6 | # command => "/usr/bin/grub-install --target=i386-pc $base_installation::device", | ||
7 | # subscribe => Package["grub"], | ||
8 | # } | ||
9 | # } | ||
10 | |||
11 | file_line { "/etc/default/grub#GRUB_CMDLINE_LINUX": | ||
12 | path => "/etc/default/grub", | ||
13 | line => 'GRUB_CMDLINE_LINUX=" console=tty0 console=ttyS0,115200"', | ||
14 | match => '^GRUB_CMDLINE_LINUX=' | ||
15 | } | ||
16 | |||
17 | # exec { 'update GRUB config': | ||
18 | # command => "/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg", | ||
19 | # refreshonly => true | ||
20 | # } | ||
21 | } | ||