diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e4fcb8..5b765a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,211 @@ Changelog of Git Changelog.

No issue

+03f1faee85ed538 Jenkins ConfDroid 2018-10-19 16:51:52 +

+

recommit for updates in build 20

+ +

+e937cafe7f05aee Arne Teuke 2018-10-19 16:50:30 +

+

fixes template

+ +

+2dfe68176fb5ff9 Jenkins ConfDroid 2018-10-19 16:22:58 +

+

recommit for updates in build 19

+ +

+a75c6ac5b78f13f Arne Teuke 2018-10-19 16:21:40 +

+

removes duplicate parameters

+ +

+8ded7bd3e3afb2f Arne Teuke 2018-10-19 16:18:10 +

+

updates README

+ +

+dfc113675aad977 Arne Teuke 2018-10-19 16:14:32 +

+

updates README

+ +

+abf598b4992597b Jenkins ConfDroid 2018-04-29 12:33:33 +

+

recommit for updates in build 17

+ +

+cfe74523e2f59c6 Jenkins ConfDroid 2018-04-29 12:21:12 +

+

recommit for updates in build 16

+ +

+5636431f0e3b25c Jenkins ConfDroid 2018-04-29 12:04:51 +

+

recommit for updates in build 15

+ +

+99cb6f049c87f4d Jenkins ConfDroid 2018-04-29 11:55:21 +

+

recommit for updates in build 14

+ +

+9a1901749977a7a Jenkins ConfDroid 2018-04-29 11:45:04 +

+

recommit for updates in build 13

+ +

+6baa1f4db017449 Jenkins ConfDroid 2018-04-29 11:34:39 +

+

recommit for updates in build 12

+ +

+58693f537bd2a37 Jenkins ConfDroid 2018-04-29 11:23:03 +

+

recommit for updates in build 11

+ +

+a4239d9f85f5910 Jenkins ConfDroid 2018-04-29 10:47:18 +

+

recommit for updates in build 10

+ +

+1bd25a5521497ad Jenkins ConfDroid 2018-04-29 10:37:43 +

+

recommit for updates in build 9

+ +

+639d791e988b054 Jenkins ConfDroid 2018-04-29 10:27:22 +

+

recommit for updates in build 8

+ +

+4dec14a6996ac2a Jenkins ConfDroid 2018-04-29 10:24:46 +

+

recommit for updates in build 7

+ +

+d47eab08c8360e0 Jenkins ConfDroid 2018-04-27 17:38:02 +

+

recommit for updates in build 3

+ +

+6ed24bfbf588e73 Jenkins ConfDroid 2018-04-12 11:03:51 +

+

recommit for updates in build 2

+ +

+cabaddfa1be2932 Jenkins ConfDroid 2018-04-12 10:15:02 +

+

recommit for updates in build 1

+ +

+ +

1.0.0.0

+

No issue

+ + +9926eb4f4b17cc5 Arne Teuke 2018-04-29 12:33:32 +

+

updates version

+ +

+9f260a29d344427 Arne Teuke 2018-04-29 12:21:07 +

+

updates target

+ +

+2436e94da9c1714 Arne Teuke 2018-04-29 12:04:42 +

+

updates template

+ +

+9f3ee3f9c283ce3 Arne Teuke 2018-04-29 11:55:14 +

+

edits checks

+ +

+8b53bf81d897644 Arne Teuke 2018-04-29 11:54:27 +

+

adds grep c[Fheck

+ +

+c150bcd51d4b551 Arne Teuke 2018-04-29 11:44:55 +

+

adds grep c[Fheck

+ +

+aaad9d3cb0c18e3 Arne Teuke 2018-04-29 11:34:32 +

+

updates mode

+ +

+db5434475f55341 Arne Teuke 2018-04-29 11:22:56 +

+

removes selinux checks

+ +

+6ad6c91488ff5db Arne Teuke 2018-04-29 10:47:09 +

+

removes the wrong resource file

+ +

+f1732d7e82c0fac Arne Teuke 2018-04-29 10:37:36 +

+

fixes syntax for linting

+ +

+5fc89477d4c696a Arne Teuke 2018-04-29 10:27:18 +

+

fixes syntax for linting

+ +

+519d6420ab1e8f6 Arne Teuke 2018-04-29 10:24:43 +

+

edits target

+ +

+e35c6f4c9f96aeb Arne Teuke 2018-04-29 10:09:29 +

+

edits target

+ +

+ef31189e6f49fcf Arne Teuke 2018-04-29 09:57:03 +

+

adds resources

+ +

+6b8ba84bc7f4d0c Arne Teuke 2018-04-29 09:52:22 +

+

adds resources

+ +

+0c39f033733df08 Arne Teuke 2018-04-27 17:37:52 +

+

updates README and Jenkinsfile

+ +

+115801729fc9b9e Arne Teuke 2018-04-12 11:02:41 +

+

updates README

+ +

+7dd65e515c82ad2 Arne Teuke 2018-04-12 10:13:28 +

+

added development branch

+ +

+8574fbd5f27d160 Arne Teuke 2017-09-27 12:42:23 +

+

fixed typo

+ +

+d84af3e7df8f311 Jenkins Server 2017-09-27 12:41:07 +

+

recommit for updates in build 158

+ +

de4abfbdcd64cff Arne Teuke 2017-09-27 12:30:48

added selinux policy for status.dat

@@ -42,16 +247,6 @@ Changelog of Git Changelog.

recommit for updates in build 154

-

- -

v0.0.1.7

-

No issue

- - -e434c34c4d82853 Arne Teuke 2017-08-02 16:35:12 -

-

removed jenkins check command from base commands, as that has been outsourced to the jenkins module

-

4c10771c8838668 Jenkins Server 2017-07-31 16:26:56

@@ -62,16 +257,36 @@ Changelog of Git Changelog.

recommit for updates in build 152

+

+d12abd7cd16065d Arne Teuke 2017-07-30 19:38:00 +

+

updating README

+ +

+93b47c0f012bb71 Arne Teuke 2017-07-30 19:34:53 +

+

updating README

+

0b459b63e6dff1b Jenkins Server 2017-07-30 15:00:59

recommit for updates in build 150

+

+fc05564e8986360 Arne Teuke 2017-07-30 15:00:13 +

+

added checknagios selinux exception

+

28a1ed3ef992781 Jenkins Server 2017-07-30 14:41:05

recommit for updates in build 149

+

+cf807acd5606c02 Arne Teuke 2017-07-30 14:40:07 +

+

added selinux policy for checknrpe

+

0679dc56e51747d Jenkins Server 2017-07-30 14:20:09

@@ -82,6 +297,11 @@ Changelog of Git Changelog.

recommit for updates in build 147

+

+ebdf85199f0f27d Arne Teuke 2017-07-30 14:09:13 +

+

changed user shell depending on role, on nagios server it requires bash access, else /sbin/nologin

+

e2c90593bb9918c Jenkins Server 2017-07-30 13:59:46

@@ -92,6 +312,11 @@ Changelog of Git Changelog.

recommit for updates in build 144

+

+19034c2a5c70f56 Arne Teuke 2017-07-28 17:54:33 +

+

included NRPE on server as well

+

08fd1fcb5ce6c7e Jenkins Server 2017-07-28 13:24:01

@@ -107,21 +332,61 @@ Changelog of Git Changelog.

recommit for updates in build 138

+

+9b6550c92ae3965 Arne Teuke 2017-07-28 11:56:56 +

+

fixed ping check on service

+

355e7d2eb09d813 Jenkins Server 2017-07-28 11:39:00

recommit for updates in build 137

+

+7551e03486668a8 Arne Teuke 2017-07-28 11:38:15 +

+

edited parameter documentation

+

7296da22ecd57f8 Jenkins Server 2017-07-28 11:32:51

recommit for updates in build 136

+

+04db67fdf99dced Arne Teuke 2017-07-28 11:32:10 +

+

edited parameter documentation

+ +

+960c34b9edd9b30 Arne Teuke 2017-07-28 11:27:58 +

+

edited README and parameter documentation

+

0cb2e563c835a16 Jenkins Server 2017-07-28 11:22:02

recommit for updates in build 134

+

+fec775ad45a87d5 Arne Teuke 2017-07-28 11:21:20 +

+

edited README

+ +

+dc88f47d7df4015 Arne Teuke 2017-07-28 11:07:53 +

+

fixed parameter for max_check_attempts

+ +

+edf2f16ea5e7289 Arne Teuke 2017-07-28 10:54:42 +

+

fixed timeperiods and edited README

+ +

+61c181393c4574b Arne Teuke 2017-07-28 10:51:00 +

+

fixed typo

+

f913376d9cfd10a Jenkins Server 2017-07-27 15:34:56

@@ -952,21 +1217,66 @@ Changelog of Git Changelog.

recommit for updates in build 27

+

+409ec084543f0d8 Arne Teuke 2017-07-21 13:47:12 +

+

added control for forward.conf

+

1fc9ffeacdebd20 Jenkins Server 2017-07-21 13:43:26

recommit for updates in build 26

+

+d9863d874f0b88f Arne Teuke 2017-07-21 13:43:07 +

+

added control for forward.conf

+

00ef7138b378bf5 Jenkins Server 2017-07-21 13:06:15

recommit for updates in build 25

+

+46d3b02f7625b15 Arne Teuke 2017-07-21 13:05:55 +

+

added control for welcome.conf

+

4ec7633f976a225 Jenkins Server 2017-07-21 12:51:33

recommit for updates in build 24

+

+5d12bf44374b934 Arne Teuke 2017-07-21 12:51:07 +

+

found format options both for hosts and ips

+ +

+442fd08f623728f Arne Teuke 2017-07-21 12:44:03 +

+

testing options both for hosts and ips

+ +

+b95350b8d8e58b4 Arne Teuke 2017-07-21 12:41:33 +

+

testing options both for hosts and ips

+ +

+a28f890bdde57e2 Arne Teuke 2017-07-21 12:30:09 +

+

testing options both for hosts and ips

+ +

+de3a7fd4fa01415 Arne Teuke 2017-07-21 12:20:44 +

+

testing options both for hosts and ips

+ +

+b37864c7a366aff Arne Teuke 2017-07-21 12:15:47 +

+

testing options both for hosts and ips

+

109eea2716be3ae Jenkins Server 2017-07-21 11:35:04

@@ -1007,16 +1317,36 @@ Changelog of Git Changelog.

recommit for updates in build 12

+

+6e251a61a25bb1d Arne Teuke 2017-07-20 16:26:21 +

+

changed wrong refresh

+

2d7dc8a5c57ed98 Jenkins Server 2017-07-20 16:21:27

recommit for updates in build 11

+

+3252eaf33a90183 Arne Teuke 2017-07-20 16:21:09 +

+

trying to work my way again through selinux

+

33ed2fc013f9abd Jenkins Server 2017-07-20 16:15:02

recommit for updates in build 10

+

+a33a855948f5050 Arne Teuke 2017-07-20 16:14:42 +

+

trying to work my way again through selinux

+ +

+0f4d8b1a85a59cb Arne Teuke 2017-07-20 16:12:18 +

+

trying to work my way again through selinux

+

016ec1e6dbe77ac Jenkins Server 2017-07-20 15:17:24

@@ -1079,6 +1409,16 @@ Changelog of Git Changelog.

+

v0.0.1.7

+

No issue

+ + +e434c34c4d82853 Arne Teuke 2017-08-02 16:35:12 +

+

removed jenkins check command from base commands, as that has been outsourced to the jenkins module

+ +

+

v0.0.1.6

No issue

@@ -1087,26 +1427,6 @@ Changelog of Git Changelog.

added parameter to enable or disable swap checking, as this can now be done better through cd_swap

-

-d12abd7cd16065d Arne Teuke 2017-07-30 19:38:00 -

-

updating README

- -

-93b47c0f012bb71 Arne Teuke 2017-07-30 19:34:53 -

-

updating README

- -

-fc05564e8986360 Arne Teuke 2017-07-30 15:00:13 -

-

added checknagios selinux exception

- -

-cf807acd5606c02 Arne Teuke 2017-07-30 14:40:07 -

-

added selinux policy for checknrpe

-

v0.0.1.5

@@ -1117,11 +1437,6 @@ Changelog of Git Changelog.

reversed user change and made sure it always can login

-

-ebdf85199f0f27d Arne Teuke 2017-07-30 14:09:13 -

-

changed user shell depending on role, on nagios server it requires bash access, else /sbin/nologin

-

v0.0.1.4

@@ -1137,11 +1452,6 @@ Changelog of Git Changelog.

updated user and README

-

-19034c2a5c70f56 Arne Teuke 2017-07-28 17:54:33 -

-

included NRPE on server as well

-

v0.0.1.3

@@ -1192,46 +1502,6 @@ Changelog of Git Changelog.

linked client installations to target

-

-9b6550c92ae3965 Arne Teuke 2017-07-28 11:56:56 -

-

fixed ping check on service

- -

-7551e03486668a8 Arne Teuke 2017-07-28 11:38:15 -

-

edited parameter documentation

- -

-04db67fdf99dced Arne Teuke 2017-07-28 11:32:10 -

-

edited parameter documentation

- -

-960c34b9edd9b30 Arne Teuke 2017-07-28 11:27:58 -

-

edited README and parameter documentation

- -

-fec775ad45a87d5 Arne Teuke 2017-07-28 11:21:20 -

-

edited README

- -

-dc88f47d7df4015 Arne Teuke 2017-07-28 11:07:53 -

-

fixed parameter for max_check_attempts

- -

-edf2f16ea5e7289 Arne Teuke 2017-07-28 10:54:42 -

-

fixed timeperiods and edited README

- -

-61c181393c4574b Arne Teuke 2017-07-28 10:51:00 -

-

fixed typo

-

v0.0.0.8

@@ -1247,51 +1517,6 @@ Changelog of Git Changelog.

chenged forwarding to allow http as well too

-

-409ec084543f0d8 Arne Teuke 2017-07-21 13:47:12 -

-

added control for forward.conf

- -

-d9863d874f0b88f Arne Teuke 2017-07-21 13:43:07 -

-

added control for forward.conf

- -

-46d3b02f7625b15 Arne Teuke 2017-07-21 13:05:55 -

-

added control for welcome.conf

- -

-5d12bf44374b934 Arne Teuke 2017-07-21 12:51:07 -

-

found format options both for hosts and ips

- -

-442fd08f623728f Arne Teuke 2017-07-21 12:44:03 -

-

testing options both for hosts and ips

- -

-b95350b8d8e58b4 Arne Teuke 2017-07-21 12:41:33 -

-

testing options both for hosts and ips

- -

-a28f890bdde57e2 Arne Teuke 2017-07-21 12:30:09 -

-

testing options both for hosts and ips

- -

-de3a7fd4fa01415 Arne Teuke 2017-07-21 12:20:44 -

-

testing options both for hosts and ips

- -

-b37864c7a366aff Arne Teuke 2017-07-21 12:15:47 -

-

testing options both for hosts and ips

-

v0.0.0.7

@@ -1303,24 +1528,4 @@ Changelog of Git Changelog.

updated README

-6e251a61a25bb1d Arne Teuke 2017-07-20 16:26:21 -

-

changed wrong refresh

- -

-3252eaf33a90183 Arne Teuke 2017-07-20 16:21:09 -

-

trying to work my way again through selinux

- -

-a33a855948f5050 Arne Teuke 2017-07-20 16:14:42 -

-

trying to work my way again through selinux

- -

-0f4d8b1a85a59cb Arne Teuke 2017-07-20 16:12:18 -

-

trying to work my way again through selinux

- -

diff --git a/REPOSTRUCTURE.md b/REPOSTRUCTURE.md index 2538412..ad96181 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,6 +129,7 @@ | `-- selinux | |-- checknagios.erb | |-- checknrpe.erb +| |-- grep.erb | |-- statuscgi.erb | |-- statusdat.erb | `-- taccgi.erb @@ -132,7 +140,6 @@ |-- Gemfile.lock |-- Jenkinsfile |-- LICENSE -|-- README.md -`-- REPOSTRUCTURE.md +`-- README.md -20 directories, 115 files +21 directories, 121 files diff --git a/doc/_index.html b/doc/_index.html index 28c4399..124f2af 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -4,7 +4,7 @@ - Documentation by YARD 0.9.9 + Documentation by YARD 0.9.12 @@ -52,7 +52,7 @@
-

Documentation by YARD 0.9.9

+

Documentation by YARD 0.9.12

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 @@ -281,9 +291,7 @@
  • diff --git a/doc/css/style.css b/doc/css/style.css index f682a69..57e8f9d 100644 --- a/doc/css/style.css +++ b/doc/css/style.css @@ -484,6 +484,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 */ +p > 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..8406b15 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.12 @@ -61,8 +61,8 @@

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

    Synopsis

    @@ -89,7 +89,7 @@ production!!! __**

    Features

  • Repo +href="https://gitlab.confdroid.com/12WW1160/cd_nagios/blob/master/REPOSTRUCTURE.md">Repo Structure

  • Dependencies

    @@ -125,7 +125,7 @@ Structure

    Tests

  • Changelog

    +href="https://gitlab.confdroid.com/12WW1160/cd_nagios/blob/master/CHANGELOG.md">Changelog

  • Contact Us

  • @@ -184,7 +184,9 @@ define, to avoid having to alter the module code. * configure forwarding http to https including accesing the /nagios url directly (optional) * -manage TLS certificates through certbot (optional)

    +manage TLS certificates through certbot (optional) +* manage +$user$ arguments in resource file via define

    Service * manage Nagios service on server

    @@ -212,31 +214,30 @@ clients:

    All dependencies must be included in the catalogue.

    @@ -248,7 +249,7 @@ 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:

    @@ -288,7 +289,7 @@ Nagios server to connect to clients. Defaults to true.

    Requires puppetlabs firewall or cd_firewall, +href="https://gitlab.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,8 +302,8 @@ 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 -is available to automate this task for you as well within a few minutes.

    +href="https://gitlab.confdroid.com/12WW1160/cd_puppetdb">cd_puppetdb is +available to automate this task for you as well within a few minutes.

    SELINUX

    @@ -346,6 +347,13 @@ required firewall port on clients (optional,default).

    Manage Additional Resources

    Known Problems

    +

    Support

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

    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..cd823c5 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.12 @@ -97,6 +97,8 @@ cd_nagios::nagios::objects::hostgroups
    + cd_nagios::nagios::resources::resource
    + cd_nagios::nagios::objects::timeperiods
    cd_nagios::nagios::objects::contactgroups
    @@ -4915,6 +4917,38 @@ the check declaration from there, so the Nagios check is properly aligned to the Puppet module controlling the particular item.

    + + + + +
  • + + ng_user_arg1 + + + (string) + + + + — +
    +

    the user argument for $user1$

    +
    + +
  • + +
  • + + ng_user_arg2 + + + (string) + + + + — +
    +

    the user argument for $user2$

  • @@ -4936,8 +4970,6 @@ particular item.

     
     
    -653
    -654
     655
     656
     657
    @@ -5295,10 +5327,14 @@ particular item.

    1009 1010 1011 -1012
    +1012 +1013 +1014 +1015 +1016 -
    # File 'manifests/params.pp', line 653
    +        
    # File 'manifests/params.pp', line 655
     
     class cd_nagios::params (
     
    @@ -5614,6 +5650,8 @@ $ng_ssl_vhost_file          = '/etc/httpd/conf.d/nagios_ssl.conf'
     $ng_ssl_vhost_erb           = 'cd_nagios/httpd/nagios_ssl_vhost.erb'
     $ng_nagios_cfg_file         = "${ng_main_dir}/nagios.cfg"
     $ng_nagios_cfg_erb          = 'cd_nagios/nagios/nagios_cfg.erb'
    +$ng_resource_erb            = 'cd_nagios/nagios/resource_cfg.erb'
    +$ng_grep_erb                = 'cd_nagios/selinux/grep.erb'
     
     # certbot
     $ng_certbot_main_dir        = '/etc/letsencrypt'
    @@ -5667,9 +5705,7 @@ $ng_nagios_service_cmd      = 'check_nagios!/var/log/nagios/status.dat!5!/us
     
     
           
     
         
    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..471e164 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.12
       
     
     
    @@ -239,7 +239,32 @@ 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
    # File 'manifests/selinux/config.pp', line 23
    @@ -265,14 +290,16 @@ class cd_nagios::selinux::config (
         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',
    +      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,
    @@ -280,79 +307,102 @@ class cd_nagios::selinux::config (
     
         # 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 +412,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..80edb68 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.12 @@ -195,9 +195,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..6cb89c4 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.12 @@ -225,7 +225,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses/.

    116 117 118 -119 +119 +120
    # File 'manifests/server/files.pp', line 23
    @@ -277,6 +278,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 +336,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..4c74832 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.12
       
     
     
    @@ -324,7 +324,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 +342,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 +534,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 @@
         
         
     
    -    
  • +
  • + +
  • + + +
  • 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..b5ec046 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.12 @@ -285,9 +285,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..fa16bf5 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.12 @@ -237,9 +237,7 @@ $ng_cntctgrps_rule_erb = $::cd_nagios::params::ng_cntctgrps_rule_erb 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..1dc1967 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.12 @@ -245,9 +245,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..b79b123 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.12 @@ -245,9 +245,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..affbc59 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.12 @@ -370,9 +370,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..a7e3299 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.12 @@ -906,9 +906,7 @@ $ng_templates_rule_erb = $::cd_nagios::params::ng_templates_rule_erb 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..88fe20c --- /dev/null +++ b/doc/puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource_df.html @@ -0,0 +1,246 @@ + + + + + + + Defined Type: cd_nagios::nagios::resources::resource_df + + — Documentation by YARD 0.9.12 + + + + + + + + + + + + + + + + + + + +
    + + +

    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..4c4c6ee 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.12 @@ -220,9 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service diff --git a/doc/top-level-namespace.html b/doc/top-level-namespace.html index 15bd92d..0526879 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.12 @@ -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