From 984bc01b9608eb6d1b73f554f865103b006b5308 Mon Sep 17 00:00:00 2001 From: Jenkins Server Date: Mon, 2 Mar 2026 00:03:16 +0100 Subject: [PATCH] Recommit for updates in build 118 --- doc/_index.html | 10 + doc/puppet_class_list.html | 21 +- ...fdroid_nagios_3A_3Anagios_3A_3Aconfig.html | 2 +- ...A_3Aobjects_3A_3Aadd_timeperiod_rules.html | 197 ++++++++++ .../confdroid_nagios_3A_3Aparams.html | 2 + doc/puppet_defined_type_list.html | 11 +- ...ios_3A_3Aobjects_3A_3Aadd_timeperiods.html | 346 ++++++++++++++++++ 7 files changed, 579 insertions(+), 10 deletions(-) create mode 100644 doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html create mode 100644 doc/puppet_defined_types/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html diff --git a/doc/_index.html b/doc/_index.html index 937bfc9..4079f0a 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -118,6 +118,11 @@ +
  • + confdroid_nagios::nagios::objects::add_timeperiod_rules + +
  • +
  • confdroid_nagios::nagios::objects::commands @@ -194,6 +199,11 @@
  • +
  • + confdroid_nagios::nagios::objects::add_timeperiods + +
  • +
  • confdroid_nagios::nagios::resources::resource_df diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html index 18d5b05..d04a335 100644 --- a/doc/puppet_class_list.html +++ b/doc/puppet_class_list.html @@ -110,49 +110,56 @@
  • -
  • +
  • + +
  • + + +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • -
  • +
  • diff --git a/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aconfig.html b/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aconfig.html index d0d3736..5fe856f 100644 --- a/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aconfig.html +++ b/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aconfig.html @@ -129,7 +129,7 @@ class confdroid_nagios::nagios::config ( require confdroid_nagios::nagios::objects::add_contactgroups_rules require confdroid_nagios::nagios::objects::add_hostgroup_rules require confdroid_nagios::nagios::objects::add_servicegroup_rules - #require confdroid_nagios::nagios::objects::add_timeperiod_rules + require confdroid_nagios::nagios::objects::add_timeperiod_rules require confdroid_nagios::nagios::resources::resource } } diff --git a/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html b/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html new file mode 100644 index 0000000..7e4c134 --- /dev/null +++ b/doc/puppet_classes/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html @@ -0,0 +1,197 @@ + + + + + + + Puppet Class: confdroid_nagios::nagios::objects::add_timeperiod_rules + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Puppet Class: confdroid_nagios::nagios::objects::add_timeperiod_rules

    +
    + +
    +
    Inherits:
    +
    confdroid_nagios::params
    +
    + + +
    +
    Defined in:
    +
    + manifests/nagios/objects/add_timeperiod_rules.pp +
    +
    +
    + +

    Summary

    + Class manages /etc/nagios_conf.d/nagios_timeperiods_add.cfg and +add. hostgroups through external Puppet rules via define. + +

    Overview

    +
    +
    + +

    confdroid_nagios::nagios::objects::add_timeperiod_rules.pp Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com) }

    + +
    +
    + + + +
    + +
    +

    Examples:

    + + +

    +

    confdroid_nagios::nagios::objects::add_timeperiods { ‘example_timeperiod’:

    +

    + +
    ng_timep_name   => 'example_timeperiod',
    +ng_timep_alias  => 'Example timeperiod',
    +ng_timep_monday      => '00:00-00:00',
    +ng_timep_tuesday     => '00:00-00:00',
    +ng_timep_wednesday   => '00:00-00:00',
    +ng_timep_thursday    => '00:00-00:00',
    +ng_timep_friday      => '00:00-00:00',
    +ng_timep_saturday    => '00:00-00:00',
    +ng_timep_sunday      => '00:00-00:00',
    + +
    + + + +
    + + + + + +
    +
    +
    +
    +18
    +19
    +20
    +21
    +22
    +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/nagios/objects/add_timeperiod_rules.pp', line 18
    +
    +class confdroid_nagios::nagios::objects::add_timeperiod_rules (
    +
    +) inherits confdroid_nagios::params {
    +  if $ng_nagios_server == $fqdn {
    +    # manage /etc/nagios/conf.d/nagios_timeperiods_add.cfg
    +
    +    concat { $ng_tgt_timep_add:
    +      ensure   => present,
    +      path     => $ng_tgt_timep_add,
    +      owner    => $ng_user,
    +      group    => $ng_user,
    +      mode     => '0640',
    +      selrange => s0,
    +      selrole  => object_r,
    +      seltype  => nagios_etc_t,
    +      seluser  => system_u,
    +      notify   => Service[$ng_service],
    +    }
    +
    +    # manage file header
    +
    +    concat::fragment { 'timeperiods_header':
    +      target  => $ng_tgt_timep_add,
    +      content => template($ng_tgt_timep_head_erb),
    +      order   => '000',
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file diff --git a/doc/puppet_classes/confdroid_nagios_3A_3Aparams.html b/doc/puppet_classes/confdroid_nagios_3A_3Aparams.html index 8be37a8..415fc14 100644 --- a/doc/puppet_classes/confdroid_nagios_3A_3Aparams.html +++ b/doc/puppet_classes/confdroid_nagios_3A_3Aparams.html @@ -93,6 +93,8 @@ confdroid_nagios::nagios::objects::add_hostgroup_rules
    + confdroid_nagios::nagios::objects::add_timeperiod_rules
    + confdroid_nagios::nagios::objects::add_servicegroup_rules
    confdroid_nagios::nagios::objects::add_contactgroups_rules
    diff --git a/doc/puppet_defined_type_list.html b/doc/puppet_defined_type_list.html index 8fff851..97f2790 100644 --- a/doc/puppet_defined_type_list.html +++ b/doc/puppet_defined_type_list.html @@ -68,14 +68,21 @@
  • -
  • +
  • + +
  • + + +
  • -
  • +
  • diff --git a/doc/puppet_defined_types/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html b/doc/puppet_defined_types/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html new file mode 100644 index 0000000..3c30107 --- /dev/null +++ b/doc/puppet_defined_types/confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiods.html @@ -0,0 +1,346 @@ + + + + + + + Defined Type: confdroid_nagios::nagios::objects::add_timeperiods + + — Documentation by YARD 0.9.36 + + + + + + + + + + + + + + + + + + + +
    + + +

    Defined Type: confdroid_nagios::nagios::objects::add_timeperiods

    +
    +
    +
    Defined in:
    +
    + manifests/nagios/objects/add_timeperiods.pp +
    +
    +
    + +

    Summary

    + define populates /etc/nagios/conf.d/nagios_timeperiods_add through +external Puppet rules. + +

    Overview

    +
    +
    + +

    confdroid_nagios::nagios::objects::add_timeperiods.pp Module name: confdroid_nagios Author: 12ww160 (12ww160@confdroid.com)

    + +
    +
    + + + +
    + +
    +

    Examples:

    + + +
    confdroid_nagios::nagios::objects::add_timeperiods { 'example_timeperiod':
    +  ng_timeperiod_name   => 'example_timeperiod',
    +  ng_timeperiod_alias  => 'Example timeperiod',
    +  ng_timep_monday      => '00:00-00:00',
    +  ng_timep_tuesday     => '00:00-00:00',
    +  ng_timep_wednesday   => '00:00-00:00',
    +  ng_timep_thursday    => '00:00-00:00',
    +  ng_timep_friday      => '00:00-00:00',
    +  ng_timep_saturday    => '00:00-00:00',
    +  ng_timep_sunday      => '00:00-00:00',
    +}
    + +
    +

    Parameters:

    +
      + +
    • + + ng_timep_name + + + (Optional[String]) + + + (defaults to: undef) + + + — +
      +

      Specify the timeperiod short name.

      +
      + +
    • + +
    • + + ng_timep_alias + + + (Optional[String]) + + + (defaults to: undef) + + + — +
      +

      Specify the timeperiod alias (long name)

      +
      + +
    • + +
    • + + ng_timep_monday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Monday

      +
      + +
    • + +
    • + + ng_timep_tuesday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Tuesday

      +
      + +
    • + +
    • + + ng_timep_wednesday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Wednesday.

      +
      + +
    • + +
    • + + ng_timep_thursday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Thursday

      +
      + +
    • + +
    • + + ng_timep_friday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Friday

      +
      + +
    • + +
    • + + ng_timep_saturday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Saturday

      +
      + +
    • + +
    • + + ng_timep_sunday + + + (String) + + + (defaults to: '00:00-00:00') + + + — +
      +

      Specify the desired hours for Sunday.

      +
      + +
    • + +
    + + + +
    + + + + + +
    +
    +
    +
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +
    +
    # File 'manifests/nagios/objects/add_timeperiods.pp', line 28
    +
    +define confdroid_nagios::nagios::objects::add_timeperiods (
    +
    +  Optional[String] $ng_timep_name       = undef,
    +  Optional[String] $ng_timep_alias      = undef,
    +  String $ng_timep_monday               = '00:00-00:00',
    +  String $ng_timep_tuesday              = '00:00-00:00',
    +  String $ng_timep_wednesday            = '00:00-00:00',
    +  String $ng_timep_thursday             = '00:00-00:00',
    +  String $ng_timep_friday               = '00:00-00:00',
    +  String $ng_timep_saturday             = '00:00-00:00',
    +  String $ng_timep_sunday               = '00:00-00:00',
    +
    +) {
    +  $ng_nagios_server         = $confdroid_nagios::params::ng_nagios_server
    +  $ng_tgt_timep_add         = $confdroid_nagios::params::ng_tgt_timep_add
    +  $ng_tgt_timep_rule_erb    = $confdroid_nagios::params::ng_tgt_timep_rule_erb
    +
    +  if $ng_nagios_server == $fqdn {
    +    concat::fragment { $name:
    +      target  => $ng_tgt_timep_add,
    +      content => template($ng_tgt_timep_rule_erb),
    +    }
    +  }
    +}
    +
    +
    +
    + + + +
    + + \ No newline at end of file