Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'treydock-kdump', '2.0.1'
Learn more about managing modules with a PuppetfileDocumentation
puppet-kdump
Overview
This module manages the kdump service.
Usage
Use default actions of ensuring kdump is stopped
class { 'kdump': }
Example of how to enable kdump
class { 'kdump':
enable => true,
}
Example of changing the configuration for kdump.conf.
The config_overrides is a hash that can be used to override the default configuration. Below is the default config_overrides.
class { 'kdump':
enable => true,
config_overrides => {
'path' => '/var/crash',
'core_collector' => 'makedumpfile -c --message-level 1 -d 31',
},
}
Reference
http://treydock.github.io/puppet-kdump/
Development
Testing
Testing requires the following dependencies:
- rake
- bundler
Install gem dependencies
bundle install
Run unit tests
bundle exec rake spec
Further Information
Reference
Table of Contents
Classes
kdump
: Manage kdump
Classes
kdump
Manage kdump
Examples
Use default actions of ensuring kdump is stopped
class { 'kdump': }
Example of how to enable kdump
class { 'kdump':
enable => true,
}
Parameters
The following parameters are available in the kdump
class:
enable
crashkernel
crashkernel_bootmode
bootloader_config_path
package_name
service_name
service_ensure
service_enable
service_hasstatus
service_hasrestart
config_path
config_overrides
kernel_parameter_provider
manage_kernel_parameter
grub_kdump_cfg
enable
Data type: Boolean
Set state of kdump.
true
- Ensure service running and crashkernel kernel argument set
false
- Ensure service stopped and crashkernel kernel argument absent
Default value: false
crashkernel
Data type: String
Kernel crashkernel argument value
Default value: 'auto'
crashkernel_bootmode
Data type: String
The bootmode for crashkernel kernel argument
Default value: 'all'
bootloader_config_path
Data type: Optional[Stdlib::AbsolutePath]
Path to boot loader config
Default value: undef
package_name
Data type: String
Package name that provides kdump.
Default value: 'kexec-tools'
service_name
Data type: String
Service name for kdump.
Default value: 'kdump'
service_ensure
Data type: Optional[String]
The service ensure property for kdump.
Default value: undef
service_enable
Data type: Optional[Boolean]
The service enable property for kdump.
Default value: undef
service_hasstatus
Data type: Boolean
The service hasstatus property for kdump.
Default value: true
service_hasrestart
Data type: Boolean
The service hasrestart property for kdump.
Default value: true
config_path
Data type: Stdlib::AbsolutePath
The configuration file path for kdump.
Default value: '/etc/kdump.conf'
config_overrides
Data type: Hash
Hash of config values to add to kdump.conf
Default value: {}
kernel_parameter_provider
Data type: String
The provider property for the kernel_parameter defined type.
Default value: 'grub2'
manage_kernel_parameter
Data type: Boolean
Controls if kernel_parameter resource is managed
Default value: true
grub_kdump_cfg
Data type: Optional[String]
Path to grub2 kdump config. Only used on Ubuntu.
Default value: undef
Change log
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
v2.0.1 (2024-01-09)
Fixed
v2.0.0 (2023-09-20)
Changed
- Update Debian and Ubuntu support #24 (treydock)
- BREAKING: Updates, Drop Puppet 6 and add Puppet 8 support #21 (treydock)
Added
v1.0.0 (2022-03-19)
Changed
Added
v0.4.1 (2019-08-19)
Fixed
v0.4.0 (2019-08-19)
Changed
Added
v0.3.0 (2019-08-19)
Changed
Added
- Debian/Ubuntu support #12 (treydock)
- Use module Hiera data #11 (treydock)
- Convert module to PDK #9 (treydock)
0.2.0 (2019-04-22)
Added
0.1.1 (2019-04-02)
0.1.0 (2019-04-02)
Changed
Added
- Updated to work with Puppet 4.10 and later #3 (jeannegreulich)
0.0.1 (2015-07-31)
Added
- CentOS 7 compatibility #1 (tangestani)
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.13.0 <10.0.0)
- puppet/augeasproviders_grub (>= 2.3.1 <6.0.0)
Copyright (C) 2015 Trey Dockendorf <treydock@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.