Skip to content

tangestani/puppet-kdump

 
 

Repository files navigation

puppet-kdump

Build Status

Overview

This module manages the kdump service.

Usage

Class: kdump

Use default actions of ensuring kdump is stopped

class { 'kdump': }

Example of how to enable kdump

class { 'kdump':
  service_ensure => 'running',
  service_enable => true,
}

Example of changing the configuration for kdump.conf.

The config_hashes parameter may be an Array of Hashes or an Array of Strings.

class { 'kdump':
  service_ensure => 'running',
  service_enable => true,
  config_hashes  => [
    {'path' => '/var/crash'},
    {'core_collector' => 'makedumpfile -c --message-level 1 -d 31'},
    {'kdump_post' => '/var/crash/scripts/kdump-post.sh'},
  ],
}

Using an Array of Strings

class { 'kdump':
  service_ensure => 'running',
  service_enable => true,
  config_hashes  => [
    'path /var/crash',
    'core_collector makedumpfile -c --message-level 1 -d 31',
    'kdump_post /var/crash/scripts/kdump-post.sh',
  ],
}

Compatibility

Tested using

  • CentOS 5.9
  • CentOS 6.4

Development

Testing

Testing requires the following dependencies:

  • rake
  • bundler

Install gem dependencies

bundle install

Run unit tests

bundle exec rake ci

If you have Vagrant >= 1.2.0 installed you can run system tests

bundle exec rake spec:system

Further Information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 37.8%
  • HTML 32.1%
  • Puppet 27.5%
  • Pascal 2.6%