mollyguard
: mollyguard main class
mollyguard::checks::ceph
: use this to add ceph check to molly-guardmollyguard::checks::drbd
: use this to add drbd check to molly-guardmollyguard::checks::json_web_status
: check a json statusmollyguard::checks::libvirt
: use this to add check for running libbvirt domains to molly-guardmollyguard::checks::rabbitmq
: use this to add drbd check to molly-guardmollyguard::checks::repmgr_postgres
: use this to add repmgr-postgres check to molly-guard
mollyguard main class
The following parameters are available in the mollyguard
class:
Data type: String
what to ensure for packages, defaults to 'present'
Default value: 'present'
Data type: Array
Array of packages to install, defaults to ['molly-guard']
Default value: ['molly-guard']
Data type: Hash
Hash of additional checks to install, defaults to {}. This parameter is hiera hash merged by default.
Example (hiera): mollyguard::checks: libvirt: options: '--state-running --state-paused --state-other' drbd: {}
Default value: {}
Data type: String
where to put the additional checks, defaults to '/etc/molly-guard/run.d'
Default value: '/etc/molly-guard/run.d'
Data type: Boolean
if true (default), we purge checks not managed with puppet
Default value: true
Data type: Array
name of checks to ignore purging, these are the default checks installed with the package. defaults to: ['10-print-message', '30-query-hostname']
Default value: ['10-print-message', '30-query-hostname']
use this to add ceph check to molly-guard
The following parameters are available in the mollyguard::checks::ceph
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'
use this to add drbd check to molly-guard
The following parameters are available in the mollyguard::checks::drbd
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'
request a json file from an url and check a value
ensure that jq and curl is available on the target node.
The following parameters are available in the mollyguard::checks::json_web_status
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'
Data type: Array[String[1]]
array of uris for json files. each json file received will be checked
Default value: []
Data type: Array[String[1]]
array of queries to run on every json for syntax see man jq. The query needs to return 'true' for the check to pass. an examle could be '.numberofmembers|contains(3)' which is true if the json contains a nuberofmembers equal 3
Default value: []
Data type: Boolean
if we show the json we query (defaults true)
Default value: true
use this to add check for running libbvirt domains to molly-guard
The following parameters are available in the mollyguard::checks::libvirt
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'
Data type: String
options to add to virsh list command to select listed domains. defaults to '--all' set this to '--state-running --state-paused --state-other' if you do not care about shutdown instances.
Default value: '--all'
use this to add drbd check to molly-guard
The following parameters are available in the mollyguard::checks::rabbitmq
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'
use this to add repmgr-postgres check to molly-guard
The following parameters are available in the mollyguard::checks::repmgr_postgres
defined type:
Data type: String
directory where to put the check (mandatory)
Data type: String
name of the check (defaults to $title)
Default value: $title
Data type: String
sort parameter (defaults to '20')
Default value: '20'
Data type: String
owner of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
group of the check (file), defaults to 'root'
Default value: 'root'
Data type: String
mode of the check (file), defaults to '0755'
Default value: '0755'