Forge Home

grub

small modules to install grub

8,659 downloads

5,839 latest version

4.6 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

  • 0.1.3 (latest)
  • 0.1.2
  • 0.1.0
released Apr 18th 2018
This version is compatible with:

Start using this module

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

Add this module to your Puppetfile:

mod 'icann-grub', '0.1.3'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add icann-grub
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install icann-grub --version 0.1.3

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

icann/grub — version 0.1.3 Apr 18th 2018

Build Status Puppet Forge Puppet Forge Downloads

grub

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with grub
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

Overview

This module installs is used to manage grub, specificly we wanted a way to secure the grub menu entry which i did not find at the time. In future we will look to migrate to herculesteam-augeasproviders_grub

Setup

What grub affects

  • Manages the grub menu item and superusers

Setup Requirements

  • puppetlabs-stdlib 4.12.0

Beginning with grub

just add the grub class.

class {'::grub' }

Usage

Add an user and password and protectect edit functions

class {'::grub' 
  user => 'test',
  password => grub.pbkdf2.sha512.10000.$SOMHEHASH,
}

of with hiera

grub::user: test
grup::password: grub.pbkdf2.sha512.10000.$SOMHEHASH

Reference

Classes

Public Classes

Class: grub

Main class, includes all other classes

Parameters
  • user (Optional[String]): The user to secure grub. If the username and password are present then by default they will be required to edit grub config at boot
  • password (Optional[String]): The password to secure grub
  • protect_boot (Boolean, Default: false): If true also require the username and password toboot the system
  • protect_advanced (Boolean, Default: false): If true also require the username and password to access the advanced menu

Limitations

This module is tested on Ubuntu 14.04, and 16.04