Forge Home

kdump

Kdump module for Puppet

12,069 downloads

12,069 latest version

3.8 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.0.1 (latest)
released Mar 26th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'goldyfruit-kdump', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install goldyfruit-kdump --version 0.0.1

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/kdump — version 0.0.1 Mar 26th 2014

puppet-kdump

This module manages Kdump (kernel crash dump) The puppet-grub2 module is required

Parameters

config_template

  • Template used for Kdump config file
  • STRING : 'kdump/kdump_tools.erb'

core_dir

  • Local path to save the vmcore to
  • STRING : '/var/crash'

debug_path

  • Path to a debug version of the running kernel
  • STRING : Empty by default

fail_cmd

  • This variable can be used to cause a reboot or start a shell if saving the VMcore fails
  • STRING : Empty by default

install_kdump

  • Install the Kdump packages
  • BOOL : false

kernel_debug

  • Define the kernel debug package to install
  • STRING : Empty by default

makedump_args

  • Extra arguments passed to makedumpfile to determine what Kdump should put in a VMcore
  • STRING : -c -d 31

net_proto

  • Define if Kdump should send the VMcore via SSH, FTP, NFS, etc...
  • STRING : none

package_ensure

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

run_level

  • Define in which run level Kdump should reboot the system
  • STRING : Empty by default

save_dir

  • Only used if net_proto is set, define where the VMcore should be create
  • STRING : file:///var/crash

sysctl_args

  • Controls when a panic occurs, using the sysctl interface.
  • STRING : Empty by default

use_kdump

  • Define how many time (in second) that the menu should appears
  • 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',
}

class { 'kdump':
    install_kdump             => true,
    use_kdump                 => true,
    core_dir                  => '/var/crash',
    debug_path                => '/usr/lib/debug/boot/vmlinux-3.2.0-4-amd64',
    kernel_debug              => 'linux-image-3.2.0-4-amd64-dbg',
    fail_cmd                  => 'reboot -f',
    makedump_args             => '-c -d 31',
    net_proto                 => 'none',
    run_level                 => '1',
    save_dir                  => 'file:///var/crash',
    sysctl_args               => 'kernel.panic_on_oops=1 vm.panic_on_oom=1',
}