summaryrefslogtreecommitdiff
path: root/manifests
AgeCommit message (Collapse)Author
2016-03-10Always notify Service[nagios] from nagios resourcesvarac
2016-03-10Improve relationship of nagios resourcesvarac
2016-03-09Added $storeconfigs parametervarac
With this you can disable collection of exported resources. On masterless setups, this module would otherwise complain.
2016-02-25Merge branch 'nrpe_params' into 'master' LeLutin
Nrpe params The nagios::nrpe class is currently completely unusable with puppet 3.x+ This is because it's still relying on global variables. When one tries to setup an nrpe client with nagios::nrpe with puppet 3.x, the following error occurs: ~~~ ==> jessiepuppet: Error: Failed to parse template nagios/nrpe/nrpe.cfg: ==> jessiepuppet: Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb ==> jessiepuppet: Line: 81 ==> jessiepuppet: Detail: Could not find value for 'nagios_nrpe_pid_file' at /etc/puppet/modules/nagios/templates/nrpe/nrpe.cfg:19 ==> jessiepuppet: at /etc/puppet/modules/nagios/manifests/nrpe/base.pp:22 on node jessie.vagrantup.com ==> jessiepuppet: Error: Failed to parse template nagios/nrpe/nrpe.cfg: ==> jessiepuppet: Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb ==> jessiepuppet: Line: 81 ==> jessiepuppet: Detail: Could not find value for 'nagios_nrpe_pid_file' at /etc/puppet/modules/nagios/templates/nrpe/nrpe.cfg:19 ==> jessiepuppet: at /etc/puppet/modules/nagios/manifests/nrpe/base.pp:22 on node jessie.vagrantup.com ~~~ This is because the values of variables defined within nagios::nrpe are not propagated into other classes anymore. This series also changes a default behaviour for creating saner configurations by default: the dont_blame_nrpe option is changed to disable command arguments by default. It also adds some documentation for the nagios::nrpe class since it had no explanation whatsoever of how it should be used in the README. See merge request !18
2016-02-25still a module name left with a dash in it.Gabriel Filion
We missed this module reference. Starting with puppet 3.x, modules with a dash in them are not recognized by puppet anymore, so only the file from the "nagios" module is found.
2016-01-31disable NRPE command arguments by defaultGabriel Filion
setting dont_blame_nrpe is useful for some, but it's generally dangerous and should be disabled if it's not used. In this sense, it's a better idea to disable this by default.
2016-01-31nrpe: parametrize dont_blame_nrpeGabriel Filion
This value is used in order to enable or disable arguments to nrpe commands. Since some ppl might need to enable it, we should parametrize it.
2016-01-31parametrize nagios::nrpeGabriel Filion
the current code for configuring NRPE is still relying on global variables. This is not working at all with puppet 3.x and forward, so in order to make this code functional, we need to parametrize values that are used.
2015-12-09Merge remote-tracking branch 'shared/master'mh
2015-12-05Lint nagios::nrpe::basenadir
2015-12-05Require Package['nagios-nrpe-server'] for nrpe cmdsvarac
2015-12-05Merge remote-tracking branch 'shared/master'mh
2015-11-28linting for future parsermh
2015-11-06[bug] Install pnp4nagios-web-config-nagios3 .debvarac
On jessie hosts, pnp4nagios-web defaults now to pnp4nagios-web-config-icinga, so we install pnp4nagios-web-config-nagios3 manually.
2015-10-31also add pop3 login checksmh
2015-10-26enable ssl login by defaultmh
2015-10-26fix nagios_aliasmh
2015-10-26make it possible to also pass down the host_namemh
2015-10-25add an imap_login checkmh
2015-10-25linting nagios::service::imapmh
2015-10-25it's sufficient to check it only once an hourmh
2015-10-25newer nagios versions use now check_intervalmh
2015-10-25lintingmh
2015-10-25Merge remote-tracking branch 'shared/master'mh
2015-10-25lintingmh
2015-10-16fetch things over hkps and on every checkmh
2015-10-13install requirementsmh
2015-10-13also deploy the plugin on a nagios hostmh
2015-10-13correct namingmh
2015-10-13username can be namemh
2015-10-12make it possible to define the keyserver to fetch frommh
2015-10-12the module is called gpgmh
2015-10-12ensure we run things with the right user/groupmh
2015-10-12introduce horde_login checksmh
2015-10-12introduce gpg checksmh
2015-10-07Add --sni to check_http --ssl commandsJerome Charaoui
2015-10-02lint init.ppGabriel Filion
one line is too long, break the code block into multiple lines to fix this issue. it also creates more breathing space and makes the code easier to read.
2015-10-02files managed for apache on debian break usage through main classGabriel Filion
Currently the nagios::apache class manages some files for debian. This means that when using the main class for setting up nagios with apache (which is the default!) lacks those files and the setup doesn't work. Split out management of those files into another class to avoid making the code in the main class too encumbered and make the main class include that (instead of nagios::apache). nagios::apache will include the main class anyway. Adjust README file so that all cases of http management are done through the "nagios" class.
2015-10-02remove non-ascii char in commentGabriel Filion
puppet 3.x refuses to run when there are non-ASCII chars in comments (wth!). so replace that char with an ASCII representation of it.
2015-06-07cleanup things a bit and make it possible to set a different fqdnmh
2015-05-07require package before config filesGabriel Filion
In the current state of the module, almost 100% of the time nagios doesn't install correctly since ordering of the resources is not enforced.
2015-05-07Merge branch 'no_alias_for_host' into 'master'Micah
stop defining an alias by default for hosts Since the "alias" attribute is special for puppet in that it needs to be a string that's unique throughout all of the resources on a given host's catalogue, we shouldn't always define an alias unless users really want them. This alias might (and did for some ppl) create a conflict when using a class that is named the same as $::hostname. We've just hit hit limitation on a Koumbit node. The alias attribute is legitimate in terms of nagios host attributes, but the name of the attribute clashes with the special-purpose attribute for puppet. So one might argue that the native puppet types are flawed, and they would be correct! but getting those types fixed would be a pain in the ass since they haven't been maintained for quite some time. See merge request !10
2015-05-07Merge branch 'plugin_path' into 'master'Micah
Plugin path Avoid using lib64 in the path for x86_64 architecture when using debian. this path is not available anymore starting with debian wheezy. Then lint the file to make it easier to read / maintain. This is a followup of https://labs.riseup.net/code/issues/4237 See merge request !7
2015-05-07Merge branch 'manage_resource.cfg' into 'master'Micah
Only use the private directory on CentOS Debian and ubuntu have their resource.cfg file placed in /etc/nagios3/ and when it's absent it can cause issues with the package (because the package is badly done). This is a followup to issue https://labs.riseup.net/code/issues/4240 See merge request !4
2015-04-23stop defining an alias by default for hostsGabriel Filion
Since the "alias" attribute is special for puppet in that it needs to be a string that's unique throughout all of the resources on a given host's catalogue, we shouldn't always define an alias unless users really want them. This alias might (and did for some ppl) create a conflict when using a class that is named the same as $::hostname.
2015-04-19nagios::service typo in variableGabriel Filion
This invalidates the point of that if block since it will probably never be true that some undefined (read mis-typed) variable is set to 'absent'.
2015-04-19unquoted boolean variablesnadir
2015-04-19lint plugin.ppGabriel Filion
This should make it easier to read the code.
2015-04-19Fixing plugin path for debianSilvio Rhatto
2015-04-19Only use the private directory on CentOSGabriel Filion
Debian and ubuntu have their resource.cfg file placed in /etc/nagios3/ and when it's absent it can cause issues with the package (because the package is badly done).