===
Puppet module to manage Transparent Huge Pages on RHEL6/CentOS6 and higher
===
This module is built for use with Puppet v3 on the following platforms and supports Ruby versions 1.8.7, 1.9.3, and 2.0.0.
- EL 6
===
All numbers should be type cast as strings. Each per service option can be accessed as parameters and follow the naming scheme of <service>_<option>
with the dashed changed to underscores. So enable-cache for the passwd service is available as passwd_enable_cache
. The default values follow that of the man page, unless otherwise noted.
Path to sysconfig thp
- Default: '/etc/sysconfig/thp'
Owner of sysconfig thp.
- Default: 'root'
Group of sysconfig thp.
- Default: 'root'
Mode of sysconfig thp. Must be in four digit octal notation.
- Default: '0644'
String or array for name of service(s).
- Default: 'thp'
String for value of ensure attribute of thp service. Valid values are 'present', 'running', 'absent', or 'stopped'.
Note: This does not actually run a service
- Default: 'stopped'
Value of enable attribute of thp service. This determines if the service will start at boot or not. Allows for boolean, 'true', or 'false'.
- Default: true
Value of the default init.d path
- Default: '/etc/init.d'
Owner of sysconfig thp.
- Default: 'root'
Group of sysconfig thp.
- Default: 'root'
Mode of sysconfig thp. Must be in four digit octal notation.
- Default: '0755'
Kernel configuration option to enable or disable Transparent Huge Pages by setting a value in /sys/kernel/mm/transparent_hugepage/enabled. Valid values are 'always,' 'never,' or 'madvise.'
- Default: 'always'
Kernel configuration option to enable or disable Transparent Huge Pages Defragmentation by setting a value in /sys/kernel/mm/transparent_hugepage/defrag. Valid values are 'always,' 'never,' or 'madvise.'
- Default: 'always'
Because this is a parameterized class, you can use hiera to override the defaults. This is primarily to allow for modifying thp_status and thp_defrag_status from defaults. To do this, include the thp module somewhere in your manifests and then set the following options in your hiera YAML configuration.
thp::thp_status: 'always'
thp::thp_defrag_status: 'never'