Puppet Class: grubby

Defined in:
manifests/init.pp

Summary

Manage bootloader configuration via grubby

Overview

Examples:

Include Class

include ::grubby

Specify Default Kernel

class{'grubby:
  default_kernel => 'vmlinuz-4.18.0-240.15.1.el8_3.x86_64',
}

Add and Remove Kernel Options

class{'grubby':
  kernel_opts => {
    audit  => {
      ensure => present,
      value  => 1,
      scope  => 'DEFAULT',
    },
    audit_backlog_limit => {
      value => 1,
    },
    selinux => {
      'ensure' => 'absent',
      'scope'  => 'ALL',
    }
  }
}

Parameters:

  • default_kernel (Optional[String[1]]) (defaults to: undef)

    The kernel version to set as default in the bootloader.

  • kernel_opts (Optional[Hash[Pattern[/^\S+$/], Grubby::Kernel_Opts]]) (defaults to: {})

    The kernel options that should be managed for the default kernel If ensure is not specified, present will be used (the other option being absent) If scope is not specified, DEFAULT will be used (valid options are also ALL or specific kernel) Example:

    audit:
      ensure: present
      value: 1
      scope: DEFAULT
    audit_backlog_limit:
      value: 8192
    selinux:
      ensure: absent
      scope: ALL
    enforcing:
      ensure: absent
    


49
50
51
52
53
54
# File 'manifests/init.pp', line 49

class grubby (
  Optional[String[1]] $default_kernel                                = undef,
  Optional[Hash[Pattern[/^\S+$/], Grubby::Kernel_Opts]] $kernel_opts = {},
) {
  contain 'grubby::config'
}