Forge Home

grub2

GRUB 2 module for Puppet

131,528 downloads

215 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.0.17 (latest)
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.0.8
  • 0.0.7
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3 (deleted)
  • 0.0.3-1
  • 0.0.2
  • 0.0.1
released May 10th 2015
This version is compatible with:
  • RedHat, Debian, Ubuntu, CentOS

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'goldyfruit-grub2', '0.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add goldyfruit-grub2
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install goldyfruit-grub2 --version 0.0.4

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

goldyfruit/grub2 — version 0.0.4 May 10th 2015

puppet-grub2

Build Status Puppet Forge License

This module manages GRUB 2 bootloader

Parameters

badram

  • Define some memory addresses for BadRAM filtering
  • STRING : Empty by default

config_template

  • Template used for GRUB config file
  • STRING : 'grub2/default_grub.erb'

cmdline_linux

  • Arguments passed to the kernel
  • STRING : Empty by default

cmdline_linux_default

  • Arguments passed to the kernel
  • STRING : Empty by default

default_entry

  • Define on which kernel the system will boot
  • STRING : 0

device_install

  • Define on which hard drive the MBR will be write
  • STRING : Empty by default

disable_uuid

  • Define if GRUB should use the UUID in the root= path
  • BOOL : false

disable_recovery

  • Define if GRUB should display the recovery entry in the menu
  • BOOL : false

disable_submenu

  • Define if GRUB should display the submenu
  • BOOL : false

gfxmode

  • Define which resolution should be used if VBE is used
  • STRING : Empty by default

hidden_timeout

  • Define how long (in seconds) grub should wait for a user to enter the menu
  • STRING : Not present in config file by default

hidden_timeout_quiet

  • Define if the hidden timeout is quiet or not
  • BOOL : Not present in config file unless explicitly defined with true or false

install_grub

  • Install the GRUB packages and install GRUB in the MBR
  • BOOL : False

package_ensure

  • Puppet stuff, define in which state should be the GRUB packages
  • STRING : 'present'

serial_command

  • Set settings for the serial console
  • STRING : Empty by default

terminal

  • Define on which terminal the ouput should be display
  • STRING : Empty by default

timeout

  • Define how long (in seconds) that the menu should appear
  • STRING : 5

tune

  • Define if GRUB should make a beep when he starts
  • STRING : Empty by default

update_grub

  • Regenerate the GRUB configuration after updates
  • BOOL : true

Example

class { 'grub2':
  update_grub               => false,
  install_grub              => false,
  cmdline_linux_default     => 'quiet crashkernel=256M nmi_watchdog=0 console=tty0 console=ttyS1,115200n8',
  terminal                  => 'serial console',
  default_entry             => 0,
  timeout                   => 5,
  serial_command            => 'serial --speed=115200 --unit=1 --word=8 --parity=no --stop=1',
  disable_uuid              => true,
  disable_recovery          => true,
  tune                      => '480 440 1',
  device_install            => '/dev/sda',
  hidden_timeout            => 0,
  hidden_timeout_quiet      => false,
}