linked client installations to target

This commit is contained in:
Arne Teuke
2017-07-28 13:16:40 +01:00
parent 9b6550c92a
commit 3e4f06a1fa
4 changed files with 48 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
|Repo Name| version | Build Status|
|---|---|---|---|
|`cd_nagios`| 0.0.0.10 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios)](https://jenkins.confdroid.com/job/cd_nagios/)|
|`cd_nagios`| 0.0.1.0 | [![Build Status](https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios)](https://jenkins.confdroid.com/job/cd_nagios/)|
### Synopsis
Nagios is a powerful open source software solution for monitoring your IT environments.
@@ -37,9 +37,13 @@ Nagios is a powerful open source software solution for monitoring your IT enviro
### Features
Installation:
* install httpd
* install server binaries on Nagios server
* install client binaries on clients
* Nagios Server instance:
* install httpd via cd_apache
* install Nagios server binaries on Nagios server
* Nagios clients:
* install client binaries like nagios plugins etc.
* install NRPE (optional)
Configuration
* configure all aspects of Nagios on server

View File

@@ -27,6 +27,8 @@ class cd_nagios::client::target (
if $::fqdn != $ng_nagios_server {
require cd_nagios::main::install
@@nagios_host { $::fqdn:
ensure => $ng_ping_ensure,
alias => $::hostname,

View File

@@ -59,7 +59,7 @@ class cd_nagios::main::install (
ensure => $pkg_ensure,
}
# if we want o use NRPE, install it
# if we want to use NRPE, install it
if $ng_include_nrpe == true {
package {$reqpackages_nrpe:

View File

@@ -0,0 +1,37 @@
## cd_nagios::nagios::objects::hostdependencies.pp
# Module name: cd_nagios
# Author: Arne Teuke (arne_teuke@ConfDroid.com)
# # License:
# This file is part of cd_nagios.
#
# cd_nagios is used for providing automatic configuration of Nagios
# Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# @summary Class manages basic hostgroups known to NAGIOS through Puppet
# exports, and populates /etc/nagios/conf.d/nagios_base_hostgroups.cfg.
################################################################################
class cd_nagios::nagios::objects::hostdependencies (
) inherits cd_nagios::params {
if $::fqdn == $ng_nagios_server {
@@nagios_hostdependency {
}
}
}