acaiafa / grub-cookbook

grub-cookbook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grub Cookbook

License

Cookbook which configures the Grub Bootloader.

Platforms

The following platforms are tested using Test Kitchen:

  • Ubuntu 12.04/14.04/16.04
  • CentOS (RHEL) 5/6/7

Basic Usage

The default recipe gives you the ability to pass attributes to tune your grub settings. There are currently no defaults in this cookbook so your regular distrobution provided grub file will remain intact. You can tweak the settings in the Policefile.rb or directly using attributes. All GRUB specific settings should use underscores like the examples below.

Recipe

node.default['grub']['config']['settings']['timeout'] = 30
node.default['grub']['config']['settings']['distributor'] = "$(sed 's, release .*$,,g' /etc/system-release)"
node.default['grub']['config']['settings']['terminal_output'] = "console"

Policyfile

name 'grub'
default_source :community
cookbook 'grub', git: 'https://github.com/acaiafa/grub-cookbook'
run_list 'grub::default'

override['grub']['config']['settings']['timeout'] = 30
override['grub']['config']['settings']['distributor'] = "$(sed 's, release .*$,,g' /etc/system-release)"
override['grub']['config']['settings']['terminal_output'] = "console"

About

grub-cookbook

License:Apache License 2.0


Languages

Language:Ruby 100.0%