nhc
: Manage Node Health Check (NHC)nhc::config
: private classnhc::install
: private class
nhc::conf
: Manage NHC configurationsnhc::custom_check
: Add NHC custom check file
Manage Node Health Check (NHC)
include ::nhc
The following parameters are available in the nhc
class:
ensure
install_method
package_ensure
version
package_release
install_source
package_name
repo_name
source_dependencies
libexec_dir
checks
settings
settings_host
config_overrides
detached_mode
detached_mode_fail_nodata
program_name
conf_dir
conf_file
include_dir
log_file
sysconfig_path
manage_logrotate
log_rotate_every
custom_checks
Data type: Enum['present', 'absent']
State of NHC resources
Default value: 'present'
Data type: Enum['repo','package','source']
The method used to install NHC.
Using repo
will require the Yumrepo
resource if repo_name
is defined.
Default value: 'source'
Data type: Optional[String]
The ensure state of package if using install_method
of repo
or package
.
Default value: undef
Data type: String
The version of NHC to install.
Default value: '1.4.3'
Data type: String
The package release NHC to install. Not used if install_method
is source
.
Default value: '1'
Data type: Optional[Variant[Stdlib::HTTPUrl,Stdlib::HTTPSUrl]]
The source of install.
For install_method
of package
this is URL to package
For install_method
of source
this is git source URL
Default value: undef
Data type: Optional[String]
Name of the NHC package, not used with install_method
of source
.
Default value: undef
Data type: Optional[String]
The repo name for NHC, only used with install_method
of repo
.
Default value: undef
Data type: Array
The package dependencies for source install.
Default value: ['automake','make']
Data type: Stdlib::Absolutepath
Location for libexec directory, OS dependent.
Default value: '/usr/libexec'
Data type: Variant[Hash, Array]
NHC checks for nhc.conf
Default value: []
Data type: Hash
Settings to add to nhc.conf
Default value: {}
Data type: Hash
Host specific settings for nhc.conf
Default value: {}
Data type: Hash
Settings to add to /etc/sysconfig/nhc
Default value: {}
Data type: Boolean
Value for DETACHED_MODE
Default value: false
Data type: Boolean
Value for DETACHED_MODE_FAIL_NODATA
Default value: false
Data type: String
Value for NAME
Default value: 'nhc'
Data type: Stdlib::Absolutepath
Path to NHC configuration directry
Default value: '/etc/nhc'
Data type: Stdlib::Absolutepath
Path for this configuration file
Default value: '/etc/nhc/nhc.conf'
Data type: Stdlib::Absolutepath
Path to directory containing NHC checks
Default value: '/etc/nhc/scripts'
Data type: Stdlib::Absolutepath
Path to log file
Default value: '/var/log/nhc.log'
Data type: Stdlib::Absolutepath
Path to sysconfig file
Default value: '/etc/sysconfig/nhc'
Data type: Boolean
Boolean that sets if logrotate resources should be managed
Default value: true
Data type: String
Frequency of logrotation
Default value: 'weekly'
Data type: Hash
Hash passed to nhc::custom_check
Default value: {}
private class
private class
Manage NHC configurations
nhc::conf { 'nhc-cron':
settings => { 'NHC_RM' => 'slurm' },
settings_host => { 'c0001' => { 'FOO' => 'bar' }},
checks => { '*' => ['check_fs_free /tmp 10%'] },
config_overrides => { 'HOSTNAME' => '"$HOSTNAME_S"' },
}
The following parameters are available in the nhc::conf
defined type:
ensure
checks
settings
settings_host
config_overrides
detached_mode
detached_mode_fail_nodata
program_name
conf_dir
conf_file
include_dir
sysconfig_path
log_file
Data type: Enum['present', 'absent']
State of nhc::conf
Default value: 'present'
Data type: Variant[Hash, Array]
Checks to add to the configuration file
Default value: []
Data type: Hash
Settings to add to the configuration file
Default value: {}
Data type: Hash
Settings specific to a hosts to add to the configuration file
Default value: {}
Data type: Hash
Overrides for configuration in /etc/sysconfig/$name
Default value: {}
Data type: Boolean
Value for DETACHED_MODE
Default value: false
Data type: Boolean
Value for DETACHED_MODE_FAIL_NODATA
Default value: false
Data type: String
Value for NAME
Default value: $name
Data type: Optional[Stdlib::Absolutepath]
Path to NHC configuration directry. Defaults to /etc/nhc
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path for this configuration file. Defaults to /etc/nhc/$name.conf
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path to directory containing NHC checks. Defaults to /etc/nhc/scripts
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path to sysconfig file. Defaults to /etc/sysconfig/$name
Default value: undef
Data type: Optional[Stdlib::Absolutepath]
Path to log file. Defaults to /var/log/$name.log
Default value: undef
Add NHC custom check file
nhc::custom_check { 'osc_gpfs':
source => 'puppet:///modules/profile/nhc/osc_gpfs.nhc',
}
The following parameters are available in the nhc::custom_check
defined type:
Data type: Optional[String]
The source of the custom check
Default value: undef