diff --git a/REPOSTRUCTURE.md b/REPOSTRUCTURE.md index 2538412..c297efb 100644 --- a/REPOSTRUCTURE.md +++ b/REPOSTRUCTURE.md @@ -30,6 +30,7 @@ | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aservicegroups.html | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atimeperiods.html +| | |-- cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource.html | | |-- cd_nagios_3A_3Aparams.html | | |-- cd_nagios_3A_3Aselinux_3A_3Aconfig.html | | |-- cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html @@ -43,6 +44,7 @@ | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroups.html | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html | | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html +| | |-- cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource_df.html | | `-- cd_nagios_3A_3Aserver_3A_3Aaccess.html | |-- file.README.html | |-- frames.html @@ -64,26 +66,29 @@ | | |-- install.pp | | `-- user.pp | |-- nagios -| | `-- objects -| | |-- add_contactgroups.pp -| | |-- add_contactgroups_rules.pp -| | |-- add_contact.pp -| | |-- add_contact_rules.pp -| | |-- add_hostgroup_rules.pp -| | |-- add_hostgroups.pp -| | |-- add_servicegroup_rules.pp -| | |-- add_servicegroups.pp -| | |-- add_timeperiod_rules.pp -| | |-- add_timeperiods.pp -| | |-- commands.pp -| | |-- config.pp -| | |-- contactgroups.pp -| | |-- contacts.pp -| | |-- hostgroups.pp -| | |-- servicegroups.pp -| | |-- template_rules.pp -| | |-- templates.pp -| | `-- timeperiods.pp +| | |-- objects +| | | |-- add_contactgroups.pp +| | | |-- add_contactgroups_rules.pp +| | | |-- add_contact.pp +| | | |-- add_contact_rules.pp +| | | |-- add_hostgroup_rules.pp +| | | |-- add_hostgroups.pp +| | | |-- add_servicegroup_rules.pp +| | | |-- add_servicegroups.pp +| | | |-- add_timeperiod_rules.pp +| | | |-- add_timeperiods.pp +| | | |-- commands.pp +| | | |-- config.pp +| | | |-- contactgroups.pp +| | | |-- contacts.pp +| | | |-- hostgroups.pp +| | | |-- servicegroups.pp +| | | |-- template_rules.pp +| | | |-- templates.pp +| | | `-- timeperiods.pp +| | `-- resources +| | |-- resource_df.pp +| | `-- resource.pp | |-- selinux | | `-- config.pp | |-- server @@ -113,6 +118,8 @@ | | |-- hostgroups_cfg_rule.erb | | |-- htpasswd_rule.erb | | |-- nagios_cfg.erb +| | |-- resource_cfg.erb +| | |-- resource_cfg_rule.erb | | |-- svcgroups_cfg_head.erb | | |-- svcgroups_cfg_rule.erb | | |-- templates_cfg_head.erb @@ -122,17 +129,16 @@ | `-- selinux | |-- checknagios.erb | |-- checknrpe.erb +| |-- grep.erb | |-- statuscgi.erb | |-- statusdat.erb | `-- taccgi.erb |-- tests | `-- UTF_Files -|-- CHANGELOG.md |-- Gemfile |-- Gemfile.lock |-- Jenkinsfile |-- LICENSE -|-- README.md -`-- REPOSTRUCTURE.md +`-- README.md -20 directories, 115 files +21 directories, 120 files diff --git a/doc/_index.html b/doc/_index.html index 28c4399..64d9b86 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -4,7 +4,7 @@ - Documentation by YARD 0.9.9 + Documentation by YARD 0.9.16 @@ -52,7 +52,7 @@
-

Documentation by YARD 0.9.9

+

Documentation by YARD 0.9.16

Alphabetic Index

@@ -173,6 +173,11 @@ +
  • + cd_nagios::nagios::resources::resource + +
  • +
  • cd_nagios::params @@ -248,6 +253,11 @@
  • +
  • + cd_nagios::nagios::resources::resource_df + +
  • +
  • cd_nagios::server::access @@ -264,6 +274,8 @@ + +

    File Listing

      @@ -281,9 +293,7 @@
  • diff --git a/doc/css/style.css b/doc/css/style.css index f682a69..0bf7e2c 100644 --- a/doc/css/style.css +++ b/doc/css/style.css @@ -245,6 +245,7 @@ ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; } dl.constants { margin-left: 10px; } dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; } +dl.constants.compact dt { display: inline-block; font-weight: normal } dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; } dl.constants .docstring .note:first-child { margin-top: 5px; } @@ -326,13 +327,9 @@ ul.summary a, ul.summary a:visited { text-decoration: none; font-size: 1.1em; } ul.summary li { margin-bottom: 5px; } -.summary .summary_signature { - padding: 4px 8px; - background: #f8f8f8; - border: 1px solid #f0f0f0; - border-radius: 5px; -} +.summary_signature { padding: 4px 8px; background: #f8f8f8; border: 1px solid #f0f0f0; border-radius: 5px; } .summary_signature:hover { background: #CFEBFF; border-color: #A4CCDA; cursor: pointer; } +.summary_signature.deprecated { background: #ffe5e5; border-color: #e9dada; } ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;} ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; } #content .summary_signature:hover a, @@ -484,6 +481,13 @@ pre.code .rubyid_backref, pre.code .rubyid_nth_ref { color: #6D79DE; } pre.code .regexp, .dregexp { color: #036A07; } pre.code a { border-bottom: 1px dotted #bbf; } +/* inline code */ +*:not(pre) > code { + padding: 1px 3px 1px 3px; + border: 1px solid #E1E1E8; + background: #F7F7F9; + border-radius: 4px; +} /* Color fix for links */ #content .summary_desc pre.code .id > .object_link a, /* identifier */ diff --git a/doc/file.README.html b/doc/file.README.html index 94e5f4b..bb069b0 100644 --- a/doc/file.README.html +++ b/doc/file.README.html @@ -6,7 +6,7 @@ File: README - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -58,12 +58,8 @@
    -

    |Repo Name| version | Build -Status| -|---|---|---|---| -|cd_nagios| 0.0.1.9 | {Build -Status/]|

    +

    Synopsis

    @@ -86,58 +82,52 @@ production!!! __**

    Table of Contents

    Features

    -

    Installation: -* Nagios Server instance: - * install httpd via cd_apache - * +

    Installation: * Nagios Server instance: * install httpd via cd_apache * install Nagios server binaries on Nagios server

    -

    Configuration -* configure all aspects of Nagios on server -* manage nagios -service user -* manage directories (filesystem permissions, selinux ) -* -manage cgi.cfg through parameters -* manage nagios.cfg through parameters -* -manage Nagios users through external Puppet rules via define -* manage -Nagios commands through Puppet exports -* manage Nagios template definitions -through external Puppet rules via define -* manage Nagios main contacts +

    Configuration * configure all aspects of Nagios on server * manage nagios +service user * manage directories (filesystem permissions, selinux ) * +manage cgi.cfg through parameters * manage nagios.cfg through parameters * +manage Nagios users through external Puppet rules via define * manage +Nagios commands through Puppet exports * manage Nagios template definitions +through external Puppet rules via define * manage Nagios main contacts through Puppet exports. Additional contacts can be created through external -Puppet rules via define, to avoid having to alter the module code. -* manage +Puppet rules via define, to avoid having to alter the module code. * manage Nagios main contactgroups through Puppet exports. Additional contact groups can be created through external Puppet rules via define, to avoid having to -alter the module code. -* manage Nagios main hostgroups through Puppet +alter the module code. * manage Nagios main hostgroups through Puppet exports. Additional host groups can be created through external Puppet -rules via define, to avoid having to alter the module code. -* manage Nagios +rules via define, to avoid having to alter the module code. * manage Nagios main servicegroups through Puppet exports. Additional service groups can be created through external Puppet rules via define, to avoid having to alter -the module code. -* manage Nagios main timeperiods through Puppet exports. +the module code. * manage Nagios main timeperiods through Puppet exports. Additional timeperiods can be created through external Puppet rules via -define, to avoid having to alter the module code. -* configure firewall -(optional) -* configure selinux policies (optional) -* configure forwarding -http to https including accesing the /nagios url directly (optional) -* -manage TLS certificates through certbot (optional)

    +define, to avoid having to alter the module code. * configure firewall +(optional) * configure selinux policies (optional) * configure forwarding +http to https including accesing the /nagios url directly (optional) * +manage TLS certificates through certbot (optional) * manage +$user$ arguments in resource file via define

    -

    Service -* manage Nagios service on server

    +

    Service * manage Nagios service on server

    -

    Monitoring -* monitor Nagios host -* monitor Nagios service -* monitor -clients: - * ping - * root partition - * swap usage - * logged-in local users - -* amount of total processes - * amount of zombie processes - * current Load

    +

    Monitoring * monitor Nagios host * monitor Nagios service * monitor +clients: * ping * root partition * swap usage * logged-in local users +* amount of total processes * amount of zombie processes * current Load

    Repo Structure

    @@ -212,32 +175,34 @@ clients:

    All dependencies must be included in the catalogue.

    @@ -248,10 +213,10 @@ concat to concatenate configuration files from different sources.

    via site.pp or nodes.pp

    node 'example.example.net' {
    -  include cd_puppetdb
    +  include cd_nagios
     }
    -

    through Foreman:

    +

    through Foreman:

    In order to apply parameters through Foreman, cd_nagios::params must be added to the host or hostgroup @@ -288,7 +253,7 @@ Nagios server to connect to clients. Defaults to true.

    Requires puppetlabs firewall or cd_firewall, +href="https://sourcecode.confdroid.com/12WW1160/cd_firewall">cd_firewall, which is a backdated clone of the puppetlabs firewall but tested to be fully functioning with all our features.

    @@ -301,7 +266,7 @@ list of all available parameters.

    A working instance of PuppetDBconnected to the Puppet master is required for this to work. Installation and configuration of PuppetDB is out of scope for this module, however cd_puppetdb +href="https://sourcecode.confdroid.com/12WW1160/cd_puppetdb">cd_puppetdb is available to automate this task for you as well within a few minutes.

    SELINUX

    @@ -337,8 +302,7 @@ directly, hence the module creates a vhost for the ssl host.

    Client Connections

    In order to monitor clients, NAGIOS must be able to connect to them. There -are multiple ways of doing so, the most common ones being NRPE and SSH. -So +are multiple ways of doing so, the most common ones being NRPE and SSH. So far this module works through the usage of NRPE, which by default is enabled. Class cd_nagios::client::nrpe configures nrpe.cfg and opens the required firewall port on clients (optional,default).

    @@ -346,12 +310,19 @@ required firewall port on clients (optional,default).

    Manage Additional Resources

    Known Problems

    +

    Support

    Tests

    @@ -396,17 +367,14 @@ with PuppetDB (see tests/UTF_Files)

    ConfDroid as entity is entirely independent from Puppet. We provide custom configuration modules, written for specific purposes and specific -environments. -The modules are tested and supported only as documented, and +environments. The modules are tested and supported only as documented, and require testing in designated environments (i.e. lab or development environments) for parameter tuning etc. before deploying into production environments.

    diff --git a/doc/frames.html b/doc/frames.html index 0cb1371..b57c778 100644 --- a/doc/frames.html +++ b/doc/frames.html @@ -2,7 +2,7 @@ - Documentation by YARD 0.9.9 + Documentation by YARD 0.9.16 + + + + + + + + + + + +
    + + +

    Puppet Class: cd_nagios::nagios::resources::resource

    +
    + +
    +
    Inherits:
    +
    cd_nagios::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/nagios/resources/resource.pp +
    +
    +
    + +

    Summary

    + Class manages the resource config file header. + +

    Overview

    +
    +
    + +

    cd_nagios::nagios::resources::resource.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 www.gnu.org/licenses/. }

    + +
    +
    + + +
    + +
    +

    Examples:

    + + +

    +

    concat::fragment { “user_rule_plugins”:

    +

    + +
    ng_user_arg_name    => "$user1$",
    +ng_user_arg_value   => '/usr/lib64/nagios/plugins',
    +ng_user_arg_comment => "Sets $USER1$ to be the path to the plugins",
    + +
    + + +
    + + + + + +
    +
    +
    +
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +
    +
    # File 'manifests/nagios/resources/resource.pp', line 28
    +
    +class cd_nagios::nagios::resources::resource (
    +
    +) inherits cd_nagios::params {
    +
    +  if $fqdn == $ng_nagios_server {
    +
    +    concat { $ng_resource_file:
    +      ensure    =>  present,
    +      owner     =>  'root',
    +      group     =>  $ng_user,
    +      mode      =>  '0640',
    +      selrange  =>  s0,
    +      selrole   =>  object_r,
    +      seltype   =>  nagios_etc_t,
    +      seluser    =>  system_u,
    +      notify  =>  Service[$ng_service],
    +    }
    +
    +    concat::fragment { 'header':
    +      target  =>  $ng_resource_file,
    +      content =>  template($ng_resource_erb),
    +      order   =>  '000',
    +    }
    +
    +    # plugins rule
    +
    +    cd_nagios::nagios::resources::resource_df { 'user_rule_plugins':
    +      ng_user_arg_name    => 'USER1',
    +      ng_user_arg_value   => '/usr/lib64/nagios/plugins/',
    +      ng_user_arg_comment => 'Sets user1 to be the path to the plugins',
    +    }
    +
    +    # eventhandlers rule
    +    cd_nagios::nagios::resources::resource_df { 'user_rule_eventhandlers':
    +      ng_user_arg_name    => 'USER2',
    +      ng_user_arg_value   => '/usr/lib64/nagios/plugins/eventhandlers/',
    +      ng_user_arg_comment => 'Sets user2 to be the path to the eventhandlers',
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/cd_nagios_3A_3Aparams.html b/doc/puppet_classes/cd_nagios_3A_3Aparams.html index 835fc00..f0067f7 100644 --- a/doc/puppet_classes/cd_nagios_3A_3Aparams.html +++ b/doc/puppet_classes/cd_nagios_3A_3Aparams.html @@ -6,7 +6,7 @@ Puppet Class: cd_nagios::params - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -97,6 +97,8 @@ cd_nagios::nagios::objects::hostgroups
    + cd_nagios::nagios::resources::resource
    + cd_nagios::nagios::objects::timeperiods
    cd_nagios::nagios::objects::contactgroups
    @@ -134,49 +136,36 @@ inherited by all classes except defines.
    -

    cd_nagios::params.pp -Module name: cd_nagios -Author: Arne Teuke +

    cd_nagios::params.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/. - to connect -to NRPE, which as of now does not trust DNS names. Must be the - public -interface in case of NAT environments. -can issue host related commands. -can +href="http://www.gnu.org/licenses">www.gnu.org/licenses/. to connect +to NRPE, which as of now does not trust DNS names. Must be the public +interface in case of NAT environments. can issue host related commands. can issue service related commands.

    + +

    Parameters:

    diff --git a/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html b/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html index 8c77f6e..e0e2fb6 100644 --- a/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html +++ b/doc/puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html @@ -6,7 +6,7 @@ Puppet Class: cd_nagios::selinux::config - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,42 +83,33 @@
    -

    cd_nagios::selinux::config.pp -Module name: cd_nagios -Author: Arne Teuke +

    cd_nagios::selinux::config.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +
    @@ -239,7 +230,34 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    130 131 132 -133 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160
    # File 'manifests/selinux/config.pp', line 23
    @@ -250,6 +268,8 @@ class cd_nagios::selinux::config (
     
       if $ng_use_selinux_tools == true {
     
    +    require cd_selinux
    +
       # it appears that selinux hehaves differently accross different nodes,
       # so all we can do for now is to create a list of the AVC alerts and come up
       # with a solution on that later.
    @@ -262,97 +282,122 @@ class cd_nagios::selinux::config (
         }
     
         # sealert tac-cgi
    -    exec { 'create_policy_taccgi':
    -      command     =>  template($ng_taccgi_erb),
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      creates     =>  "${ng_user_home}/my-taccgi.pp",
    -      notify      =>  Exec['semodule_taccgi'],
    -    }
    +#    exec { 'create_policy_taccgi':
    +#      command     =>  template($ng_taccgi_erb),
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      user        =>  $ng_user,
    +#      cwd         =>  $ng_user_home,
    +#      creates     =>  "${ng_user_home}/my-taccgi.pp",
    +#      notify      =>  Exec['semodule_taccgi'],
    +#    }
     
    -    exec { 'semodule_taccgi':
    -      command     =>  'semodule -i my-taccgi.pp',
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      require     =>  Exec['create_policy_taccgi'],
    -      refreshonly =>  true,
    -    }
    +#    exec { 'semodule_taccgi':
    +#      command     =>  "semodule -i ${ng_user_home}/my-taccgi.pp",
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      user        =>  $ng_user,
    +#      cwd         =>  $ng_user_home,
    +#      require     =>  Exec['create_policy_taccgi'],
    +#      refreshonly =>  true,
    +#    }
     
         # sealert status.cgi
     
    -    exec { 'create_policy_statuscgi':
    -      command     =>  template($ng_statcgi_erb),
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      creates     =>  "${ng_user_home}/my-statuscgi.pp",
    -      notify      =>  Exec['semodule_statuscgi'],
    -    }
    +#    exec { 'create_policy_statuscgi':
    +#      command     =>  template($ng_statcgi_erb),
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      creates     =>  "${ng_user_home}/my-statuscgi.pp",
    +#      notify      =>  Exec['semodule_statuscgi'],
    +#    }
     
    -    exec { 'semodule_statuscgi':
    -      command     =>  'semodule -i my-statuscgi.pp',
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      require     =>  Exec['create_policy_statuscgi'],
    -      refreshonly =>  true,
    -      notify      =>  Service[$ng_service],
    -    }
    +#    exec { 'semodule_statuscgi':
    +#      command     =>  'semodule -i my-statuscgi.pp',
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      require     =>  Exec['create_policy_statuscgi'],
    +#      refreshonly =>  true,
    +#      notify      =>  Service[$ng_service],
    +#    }
     
         # sealert check_nrpe
     
    -    exec { 'create_policy_checknrpe':
    -      command     =>  template($ng_checknrpe_erb),
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      creates     =>  "${ng_user_home}/my-checknrpe.pp",
    -      notify      =>  Exec['semodule_checknrpe'],
    -    }
    +#    exec { 'create_policy_checknrpe':
    +#      command     =>  template($ng_checknrpe_erb),
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      creates     =>  "${ng_user_home}/my-checknrpe.pp",
    +#      notify      =>  Exec['semodule_checknrpe'],
    +#    }
     
    -    exec { 'semodule_checknrpe':
    -      command     =>  'semodule -i my-checknrpe.pp',
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      require     =>  Exec['create_policy_checknrpe'],
    -      refreshonly =>  true,
    -      notify      =>  Service[$ng_service],
    -    }
    +#    exec { 'semodule_checknrpe':
    +#      command     =>  'semodule -i my-checknrpe.pp',
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      require     =>  Exec['create_policy_checknrpe'],
    +#      refreshonly =>  true,
    +#      notify      =>  Service[$ng_service],
    +#    }
     
         # selart check_nagios
     
    -    exec { 'create_policy_checknagios':
    -      command     =>  template($ng_checknagios_erb),
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      creates     =>  "${ng_user_home}/my-checknagios.pp",
    -      notify      =>  Exec['semodule_checknagios'],
    -    }
    +#    exec { 'create_policy_checknagios':
    +#      command     =>  template($ng_checknagios_erb),
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      creates     =>  "${ng_user_home}/my-checknagios.pp",
    +#      notify      =>  Exec['semodule_checknagios'],
    +#    }
     
    -    exec { 'semodule_checknagios':
    -      command     =>  'semodule -i my-checknagios.pp',
    -      path        =>  ['/usr/bin','/usr/sbin'],
    -      cwd         =>  $ng_user_home,
    -      require     =>  Exec['create_policy_checknagios'],
    -      refreshonly =>  true,
    -      notify      =>  Service[$ng_service],
    -    }
    +#    exec { 'semodule_checknagios':
    +#      command     =>  'semodule -i my-checknagios.pp',
    +#      path        =>  ['/usr/bin','/usr/sbin'],
    +#      cwd         =>  $ng_user_home,
    +#      require     =>  Exec['create_policy_checknagios'],
    +#      refreshonly =>  true,
    +#      notify      =>  Service[$ng_service],
    +#    }
     
         # sealert status.dat
     
         exec { 'create_policy_statusdat':
           command     =>  template($ng_statdat_erb),
           path        =>  ['/usr/bin','/usr/sbin'],
    +      user        =>  $ng_user,
           cwd         =>  $ng_user_home,
           creates     =>  "${ng_user_home}/my-http.pp",
           notify      =>  Exec['semodule_statusdat'],
         }
     
         exec { 'semodule_statusdat':
    -      command     =>  'semodule -i my-httpd.pp',
    +      command     =>  "semodule -i ${ng_user_home}/my-httpd.pp",
           path        =>  ['/usr/bin','/usr/sbin'],
    +      user        =>  $ng_user,
           cwd         =>  $ng_user_home,
           require     =>  Exec['create_policy_statusdat'],
           refreshonly =>  true,
           notify      =>  Service[$ng_service],
         }
    +
    +    # sealert grep
    +
    +    exec { 'create_policy_grep':
    +      command     =>  template($ng_grep_erb),
    +      path        =>  ['/usr/bin','/usr/sbin'],
    +      user        =>  $ng_user,
    +      cwd         =>  $ng_user_home,
    +      creates     =>  "${ng_user_home}/my-grep.pp",
    +      notify      =>  Exec['semodule_statusdat'],
    +    }
    +
    +    exec { 'semodule_grep':
    +      command     =>  "semodule -i ${ng_user_home}/my-grep.pp",
    +      path        =>  ['/usr/bin','/usr/sbin'],
    +      user        =>  $ng_user,
    +      cwd         =>  $ng_user_home,
    +      require     =>  Exec['create_policy_grep'],
    +      refreshonly =>  true,
    +      notify      =>  Service[$ng_service],
    +    }
       }
     }
    @@ -362,9 +407,7 @@ class cd_nagios::selinux::config (
    diff --git a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html index 2c9d632..105a8f4 100644 --- a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html +++ b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html @@ -6,7 +6,7 @@ Puppet Class: cd_nagios::server::access_rules - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,42 +83,33 @@
    -

    cd_nagios::server::access_rules.pp -Module name: cd_nagios -Author: Arne +

    cd_nagios::server::access_rules.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +
    @@ -195,9 +186,7 @@ class cd_nagios::server::access_rules (
    diff --git a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html index 54a99a9..da13c0c 100644 --- a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html +++ b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html @@ -6,7 +6,7 @@ Puppet Class: cd_nagios::server::files - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,42 +83,33 @@
    -

    cd_nagios::server::files.pp -Module name: cd_nagios -Author: Arne Teuke +

    cd_nagios::server::files.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +
    @@ -224,8 +215,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    115 116 117 -118 -119 +118
    # File 'manifests/server/files.pp', line 23
    @@ -237,9 +227,7 @@ class cd_nagios::server::files (
       if $::fqdn == $ng_nagios_server {
         if $ng_use_https == true {
           if $ng_enable_certbot == true {
    -
             require cd_nagios::certbot::certs
    -
           }
         }
     
    @@ -277,6 +265,7 @@ class cd_nagios::server::files (
           notify    =>  Service[$ng_service],
         }
     
    +    ## Apache files
         # since we use vhost files, we do not want the regular file to appear
         # after upgrades to avoid conflicts
     
    @@ -334,9 +323,7 @@ class cd_nagios::server::files (
     
    diff --git a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html index 597967f..29c2dec 100644 --- a/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html +++ b/doc/puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html @@ -6,7 +6,7 @@ Puppet Class: cd_nagios::server::service - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,42 +83,33 @@
    -

    cd_nagios::server::service.pp -Module name: cd_nagios -Author: Arne Teuke +

    cd_nagios::server::service.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +
    @@ -324,7 +315,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    215 216 217 -218 +218 +219
    # File 'manifests/server/service.pp', line 23
    @@ -341,6 +333,7 @@ class cd_nagios::server::service (
         require cd_nagios::server::files
         require cd_nagios::server::access_rules
         require cd_nagios::nagios::objects::config
    +    require cd_nagios::nagios::resources::resource
     
         service { $ng_service:
           ensure      => running,
    @@ -532,9 +525,7 @@ class cd_nagios::server::service (
     
    diff --git a/doc/puppet_defined_type_list.html b/doc/puppet_defined_type_list.html index c239511..77f8b72 100644 --- a/doc/puppet_defined_type_list.html +++ b/doc/puppet_defined_type_list.html @@ -82,7 +82,14 @@ -
  • +
  • +
    + cd_nagios::nagios::resources::resource_df +
    +
  • + + +
  • cd_nagios::server::access
    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html index c127b65..e6b4d78 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::add_contact - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,42 +77,33 @@ Puppet rules, and populates /etc/nagios/conf.d/nagios_add_contact.cfg.
    -

    cd_nagios::nagios::objects::add_contact.pp -Module name: cd_nagios -Author: +

    cd_nagios::nagios::objects::add_contact.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +
    @@ -285,9 +276,7 @@ $ng_contacts_rule_erb = $::cd_nagios::params::ng_contacts_rule_erb
    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups.html index ea3633b..64db5ec 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::add_contactgroups - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,42 +77,33 @@ external puppet rules.
    -

    cd_nagios::nagios::objects::add_contactgroups.pp -Module name: -cd_nagios +

    cd_nagios::nagios::objects::add_contactgroups.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/

    + +

    Parameters:

    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html index 7543b13..89b5219 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroups.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::add_hostgroups - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,42 +77,33 @@ extermal Puppet rules.
    -

    cd_nagios::nagios::objects::add_hostgroups.pp -Module name: -cd_nagios +

    cd_nagios::nagios::objects::add_hostgroups.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/

    + +
    @@ -245,9 +236,7 @@ $ng_tgt_hostgrp_rule_erb = $::cd_nagios::params::ng_tgt_hostgrp_rule_erb
    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroups.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroups.html index 3ab5156..52ea64d 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroups.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroups.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::add_servicegroups - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,42 +77,33 @@ extermal Puppet rules.
    -

    cd_nagios::nagios::objects::add_servicegroups.pp -Module name: -cd_nagios +

    cd_nagios::nagios::objects::add_servicegroups.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/

    + +
    @@ -159,8 +150,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/

    -

    Specify the servicegroup alias -(long name).

    +

    Specify the servicegroup alias (long name).

  • @@ -178,8 +168,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/

    -

    Whether you want to register the -servicegroup

    +

    Whether you want to register the servicegroup

    @@ -245,9 +234,7 @@ $ng_tgt_svcgrp_rule_erb = $::cd_nagios::params::ng_tgt_svcgrp_rule_erb diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html index 3105291..6e10e38 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::add_timeperiods - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,42 +77,33 @@ extermal Puppet rules.
    -

    cd_nagios::nagios::objects::add_timeperiods.pp -Module name: -cd_nagios +

    cd_nagios::nagios::objects::add_timeperiods.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/

    + +
    @@ -370,9 +361,7 @@ $ng_tgt_timep_rule_erb = $::cd_nagios::params::ng_tgt_timep_rule_erb
    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html index e90a7fe..cd00275 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::nagios::objects::templates - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -76,44 +76,34 @@
    -

    cd_nagios::nagios::objects::templates.pp -Module name: cd_nagios -Author: +

    cd_nagios::nagios::objects::templates.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/. -notifications. -for the defined service or host.

    +notifications. for the defined service or host.

    + +

    Parameters:

    diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource_df.html b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource_df.html new file mode 100644 index 0000000..820483d --- /dev/null +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource_df.html @@ -0,0 +1,237 @@ + + + + + + + Defined Type: cd_nagios::nagios::resources::resource_df + + — Documentation by YARD 0.9.16 + + + + + + + + + + + + + + + + + + + +
    + + +

    Defined Type: cd_nagios::nagios::resources::resource_df

    +
    +
    +
    Defined in:
    +
    + manifests/nagios/resources/resource_df.pp +
    +
    +
    + +

    Summary

    + define manages the resources in/etc/nagios/private/resources.cfg + +

    Overview

    +
    +
    + +

    cd_nagios::nagios::resources::resource_df.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 www.gnu.org/licenses/.

    + +
    +
    + + +
    +

    Parameters:

    +
      + +
    • + + ng_user_arg_name + + + (string) + + + (defaults to: undef) + + + — +
      +

      the name of the user argument i.e. $user1$

      +
      + +
    • + +
    • + + ng_user_arg_value + + + (Any) + + + (defaults to: undef) + + +
    • + +
    • + + ng_user_arg_comment + + + (Any) + + + (defaults to: undef) + + +
    • + +
    • + + ng_resource_rule_erb + + + (Any) + + + (defaults to: 'cd_nagios/nagios/resource_cfg_rule.erb') + + +
    • + +
    + + +
    + + + + + +
    +
    +
    +
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +
    +
    # File 'manifests/nagios/resources/resource_df.pp', line 24
    +
    +define cd_nagios::nagios::resources::resource_df (
    +
    +$ng_user_arg_name     = undef,
    +$ng_user_arg_value    = undef,
    +$ng_user_arg_comment  = undef,
    +$ng_resource_rule_erb = 'cd_nagios/nagios/resource_cfg_rule.erb',
    +
    +) {
    +
    +$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
    +$ng_resource_file = $::cd_nagios::params::ng_resource_file
    +
    +
    +  if $fqdn == $ng_nagios_server {
    +
    +    concat::fragment { "rule_${name}":
    +      target  =>  $ng_resource_file,
    +      content =>  template($ng_resource_rule_erb),
    +      order   =>  '000',
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html b/doc/puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html index 2596542..9426faf 100644 --- a/doc/puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html +++ b/doc/puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html @@ -6,7 +6,7 @@ Defined Type: cd_nagios::server::access - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -76,42 +76,33 @@
    -

    cd_nagios::server::access.pp -Module name: cd_nagios -Author: Arne Teuke +

    cd_nagios::server::access.pp Module name: cd_nagios Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    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 +

    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 +

    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 +

    You should have received a copy of the GNU General Public License along with this program. If not, see www.gnu.org/licenses/.

    + +

    Parameters:

    diff --git a/doc/top-level-namespace.html b/doc/top-level-namespace.html index 15bd92d..ffe07ca 100644 --- a/doc/top-level-namespace.html +++ b/doc/top-level-namespace.html @@ -6,7 +6,7 @@ Top Level Namespace - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -90,9 +90,7 @@ diff --git a/tests/UTF_Files b/tests/UTF_Files index b087bd2..3db19ff 100644 --- a/tests/UTF_Files +++ b/tests/UTF_Files @@ -2,7 +2,8 @@ ./.yardoc/proxy_types: Applesoft BASIC program data ./.yardoc/complete: empty ./.yardoc/objects/root.dat: data +./templates/httpd/index_html.erb: empty ./doc/css/style.css: HTML document, UTF-8 Unicode text, with very long lines ./doc/js/jquery.js: HTML document, UTF-8 Unicode text, with very long lines +./doc/puppet_classes/cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource.html: C++ source, UTF-8 Unicode text ./doc/puppet_classes/cd_nagios_3A_3Aparams.html: HTML document, UTF-8 Unicode text -./templates/httpd/index_html.erb: empty