diff --git a/REPOSTRUCTURE.md b/REPOSTRUCTURE.md index abd0e48..329aaae 100644 --- a/REPOSTRUCTURE.md +++ b/REPOSTRUCTURE.md @@ -14,6 +14,7 @@ | | |-- cd_nrpe_3A_3Afirewall_3A_3Aiptables.html | | |-- cd_nrpe_3A_3Amain_3A_3Aconfig.html | | |-- cd_nrpe_3A_3Amain_3A_3Adirs.html +| | |-- cd_nrpe_3A_3Amain_3A_3Aexec.html | | |-- cd_nrpe_3A_3Amain_3A_3Afiles.html | | |-- cd_nrpe_3A_3Amain_3A_3Ainstall.html | | |-- cd_nrpe_3A_3Amain_3A_3Aservice.html @@ -50,10 +51,13 @@ | |-- init.pp | `-- params.pp |-- templates +| |-- checkmodule_nrpe.erb | |-- cmd_head.erb | |-- cmd_rule.erb | |-- nrpe_cfg.erb | |-- nrpe_conf.erb +| |-- nrpe.te.erb +| |-- semodule_nrpe.erb | `-- sudo_rule.erb |-- tests | `-- UTF_Files @@ -62,7 +66,6 @@ |-- Gemfile.lock |-- Jenkinsfile |-- LICENSE -|-- README.md -`-- REPOSTRUCTURE.md +`-- README.md -12 directories, 53 files +12 directories, 56 files diff --git a/doc/_index.html b/doc/_index.html index 7424f74..5161d6c 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

@@ -159,6 +159,8 @@ + +

File Listing

    @@ -176,9 +178,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 e4b001b..754dfcc 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,9 @@
-

|Repo Name| version | Build -Status| -|---|---|---|---| -|cd_nrpe| 0.0.1.1 | {Build -Status/]|

+

|Repo Name| version | Build Status| |—|—|—|—| |cd_nrpe| +0.0.1.1 | |

Synopsis

@@ -85,65 +82,54 @@ production!!! __**

Table of Contents

Features

-

INSTALLATION -* install nrpe binaries

+

INSTALLATION * install nrpe binaries

-

CONFIGURATION -* manage NRPE service user properties -* manage directory -structure (file system permissions, selinux context) through parameters -* -manage configuration files through parameters: - * nrpe.conf - * nrpe.cfg -* -manage sudo role for nagios user on NRPE clients -* manage dynamic NRPE -check command definitions -* manage iptables (optional) -* manage selinux +

CONFIGURATION * manage NRPE service user properties * manage directory +structure (file system permissions, selinux context) through parameters * +manage configuration files through parameters: * nrpe.conf * nrpe.cfg * +manage sudo role for nagios user on NRPE clients * manage dynamic NRPE +check command definitions * manage iptables (optional) * manage selinux rule exceptions (optional)

-

SERVICE -* manage NRPE service

+

SERVICE * manage NRPE service

Repo Structure

@@ -158,19 +144,18 @@ rule exceptions (optional)

All dependencies must be included in the catalogue.

@@ -186,10 +171,10 @@ Only if you want to override settings declare it specifically.

via site.pp or nodes.pp

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

through Foreman:

+

through Foreman:

In order to apply parameters through Foreman, cd_nrpe::params must be added to the host or hostgroup in @@ -204,7 +189,7 @@ details about class deployment on Confdroid.com.

The following parameters are editable via params.pp or through ENC (recommended). Values changed will take immediate effect at next puppet run. Services will be restarted where neccessary. If you -want to override parameters, the module must be +want to override parameters, the module must be specifically declared to hosts when using ENC.

The full list @@ -230,7 +215,7 @@ through this modules. Defaults to true.

rules. Defaults to true.

  • $ne_enable_ssl : Whether to allow SSL settings. See known problems for more details.

    +href="#label-Konwn+problems">known problems for more details.

  • $ne_allow_sudo : Whether to allow the nagios / nrpe user to use sudo by default. Controls both the @@ -252,24 +237,17 @@ all commands are set via argument strings, where possible.

    The commands are created within /etc/nrpe.d/command.cfg , every set of instructions creates a new line.

    -

    Defining commands is as simple as -that: -<code> -cd_nrpe::commands::definitions { 'check_users': - -ne_check_cmd => 'check_users', - ne_cmd_argstring -=> '-w $ARG1$ -c $ARG2$', - } -</code> -It is very -recommendable to define such commands directly within Puppet modules or -profiles, so any node running the particular service controlled by the -module will automatically get the required check commands defined as well, -while nodes not running the service also do not contain the command check. -The same then is true for Nagios checks, so you would have both the NRPE -command definition and the Nagios check contained in Puppet modules or -profiles to have it in once location.

    +

    Defining commands is as simple as that: +cd_nrpe::commands::definitions { 'check_users': ne_check_cmd +=> 'check_users', ne_cmd_argstring => '-w $ARG1$ +-c $ARG2$', } It is very recommendable to define such +commands directly within Puppet modules or profiles, so any node running +the particular service controlled by the module will automatically get the +required check commands defined as well, while nodes not running the +service also do not contain the command check. The same then is true for +Nagios checks, so you would have both the NRPE command definition and the +Nagios check contained in Puppet modules or profiles to have it in once +location.

    SELINUX

    @@ -349,17 +327,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_nrpe::main::exec

    +
    + +
    +
    Inherits:
    +
    cd_nrpe::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/main/exec.pp +
    +
    +
    + +

    Summary

    + Class manages execs for cde_nrpe. + +

    Overview

    +
    +
    + +

    cd_nrpe::main::exec.pp Module name: cd_nrpe Author: Arne Teuke +(arne_teuke@ConfDroid.com)

    + +

    License:

    + +

    This file is part of cd_nrpe.

    + +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/.

    + +
    +
    + + +
    + + +
    + + + + + +
    +
    +
    +
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +
    +
    # File 'manifests/main/exec.pp', line 23
    +
    +class cd_nrpe::main::exec (
    +
    +) inherits cd_nrpe::params {
    +
    +  require cd_nrpe::main::files
    +
    +  # create policy file fpr sudo selinux policy
    +  exec { 'create_nrpe_pp':
    +    command     =>  template($ne_checkmodule_nrpe_erb),
    +    user        =>  'root',
    +    creates     =>  $ne_nrpe_pp_file,
    +    refreshonly =>  true,
    +    notify      =>  Exec['import_semodule_nrpe'],
    +  }
    +
    +  # import semodule
    +  exec { 'import_semodule_nrpe':
    +    command     =>  template($ne_semodule_erb),
    +    user        =>  'root',
    +    unless      =>  '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
    +    refreshonly =>  true,
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Afiles.html b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Afiles.html index 3be16b0..4d09cb8 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Afiles.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Afiles.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::main::files - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,41 +83,32 @@
    -

    cd_nrpe::main::files.pp -Module name: cd_nrpe -Author: Arne Teuke +

    cd_nrpe::main::files.pp Module name: cd_nrpe Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/.

    + +
    @@ -181,7 +172,22 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    73 74 75 -76 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91
    # File 'manifests/main/files.pp', line 23
    @@ -238,6 +244,21 @@ class cd_nrpe::main::files (
           seluser   =>  system_u,
           content   =>  template($ne_sudo_rule_erb),
         }
    +
    +    # file for sudo  selinux policy
    +    file { $ne_nrpe_te_file:
    +      ensure    =>  file,
    +      path      =>  $ne_nrpe_te_file,
    +      owner     =>  'root',
    +      group     =>  'root',
    +      mode      =>  '0440',
    +      selrange  =>  s0,
    +      selrole   =>  object_r,
    +      seltype   =>  nrpe_etc_t,
    +      seluser   =>  system_u,
    +      content   =>  template($ne_nrpe_te_erb),
    +      notify    =>  Exec['create_nrpe_pp'],
    +    }
       }
     }
    @@ -247,9 +268,7 @@ class cd_nrpe::main::files (
    diff --git a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Ainstall.html b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Ainstall.html index 0c66693..8fe5ef1 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Ainstall.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Ainstall.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::main::install - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -84,41 +84,32 @@ cd_nrpe
    -

    cd_nrpe::main::install.pp -Module name: cd_nrpe -Author: Arne Teuke +

    cd_nrpe::main::install.pp Module name: cd_nrpe Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/.

    + +
    @@ -160,9 +151,7 @@ class cd_nrpe::main::install (
    diff --git a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Aservice.html b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Aservice.html index b03a45e..ae35b94 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Aservice.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Aservice.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::main::service - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,41 +83,32 @@
    -

    cd_nrpe::main::service.pp -Module name: cd_nrpe -Author: Arne Teuke +

    cd_nrpe::main::service.pp Module name: cd_nrpe Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/.

    + +
    @@ -191,9 +182,7 @@ class cd_nrpe::main::service (
    diff --git a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Auser.html b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Auser.html index e2baee5..789e933 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Auser.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Amain_3A_3Auser.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::main::user - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,41 +83,32 @@
    -

    cd_nrpe::main::user.pp -Module name: cd_nrpe -Author: Arne Teuke +

    cd_nrpe::main::user.pp Module name: cd_nrpe Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/.

    + +
    @@ -193,9 +184,7 @@ class cd_nrpe::main::user (
    diff --git a/doc/puppet_classes/cd_nrpe_3A_3Aparams.html b/doc/puppet_classes/cd_nrpe_3A_3Aparams.html index add8126..143fd55 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Aparams.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Aparams.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::params - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -104,43 +104,33 @@ inherited by all classes except defines.
    -

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

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

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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/. -be passed to +href="http://www.gnu.org/licenses">www.gnu.org/licenses/. be passed to the NRPE daemon.

    + +

    Parameters:

    diff --git a/doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html b/doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html index cb6e99d..b16a541 100644 --- a/doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html +++ b/doc/puppet_classes/cd_nrpe_3A_3Aselinux_3A_3Aconfig.html @@ -6,7 +6,7 @@ Puppet Class: cd_nrpe::selinux::config - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -83,40 +83,32 @@
    -

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

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

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE 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/.

    + +
    @@ -142,7 +134,24 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    34 35 36 -37 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54
    # File 'manifests/selinux/config.pp', line 22
    @@ -161,6 +170,23 @@ class cd_nrpe::selinux::config (
           cwd     =>  '/tmp',
           unless  =>  'getsebool nagios_run_sudo | awk \'{print$3}\' | grep -ic "on"'
         }
    +
    +    # create policy file for sudo selinux policy
    +    exec { 'create_nrpe_pp':
    +      command     =>  template($ne_checkmodule_nrpe_erb),
    +      user        =>  'root',
    +      creates     =>  $ne_nrpe_pp_file,
    +      refreshonly =>  true,
    +      notify      =>  Exec['import_semodule_nrpe'],
    +    }
    +
    +    # import semodule
    +    exec { 'import_semodule_nrpe':
    +      command     =>  template($ne_semodule_erb),
    +      user        =>  'root',
    +      unless      =>  '/sbin/semodule -l | grep nrpe | grep -v nrpe_',
    +      refreshonly =>  true,
    +    }
       }
     }
    @@ -170,9 +196,7 @@ class cd_nrpe::selinux::config (
    diff --git a/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html b/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html index c2a2f5d..bd810f5 100644 --- a/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html +++ b/doc/puppet_defined_types/cd_nrpe_3A_3Acommands_3A_3Adefinitions.html @@ -6,7 +6,7 @@ Defined Type: cd_nrpe::commands::definitions - — Documentation by YARD 0.9.9 + — Documentation by YARD 0.9.16 @@ -77,41 +77,32 @@ from other modules.
    -

    cd_nrpe::commands::definitions.pp -Module name: cd_nrpe -Author: Arne Teuke +

    cd_nrpe::commands::definitions.pp Module name: cd_nrpe Author: Arne Teuke (arne_teuke@ConfDroid.com)

    -

    License:

    +

    License:

    This file is part of cd_nrpe.

    -

    cd_nrpe is used for providing automatic configuration of NRPE. - 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.

    +

    cd_nrpe is used for providing automatic configuration of NRPE. 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 0759491..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/manifests/firewall/iptables.pp b/manifests/firewall/iptables.pp index 64a6271..38db243 100644 --- a/manifests/firewall/iptables.pp +++ b/manifests/firewall/iptables.pp @@ -27,7 +27,7 @@ class cd_nrpe::firewall::iptables ( if $ne_incl_fw == true { firewall { "${ne_fw_order_no}${ne_nrpe_port} port ${ne_nrpe_port}": - source => $nagios_server, +# source => $nagios_server, proto => ['tcp','udp'], dport => $ne_nrpe_port, action => 'accept', diff --git a/tests/UTF_Files b/tests/UTF_Files index a138597..066e577 100644 --- a/tests/UTF_Files +++ b/tests/UTF_Files @@ -4,3 +4,4 @@ ./.yardoc/objects/root.dat: data ./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 +./REPOSTRUCTURE.md: very short file (no magic)