added and linked add_timeperiods
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
# @summary Class manages all timeperiods for NAGIOS through Puppet exports,
|
||||
# and populates /etc/nagios/conf.d/nagios_timeperiods.cfg.
|
||||
# @summary Class manages main timeperiods for NAGIOS through Puppet exports,
|
||||
# and populates /etc/nagios/conf.d/nagios_timeperiods_base.cfg.
|
||||
################################################################################
|
||||
class cd_nagios::nagios::objects::timeperiods (
|
||||
|
||||
@@ -54,6 +54,8 @@ class cd_nagios::nagios::objects::timeperiods (
|
||||
wednesday => '09:00-17:00',
|
||||
thursday => '09:00-17:00',
|
||||
friday => '09:00-17:00',
|
||||
saturday => '00:00-00:00',
|
||||
sunday => '00:00-00:00',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
@@ -78,5 +80,16 @@ class cd_nagios::nagios::objects::timeperiods (
|
||||
register => '1',
|
||||
target => $ng_tgt_timeperiods_base,
|
||||
}
|
||||
|
||||
@@nagios_timeperiod { 'none':
|
||||
ensure => present,
|
||||
timeperiod_name => 'none',
|
||||
alias => 'No Time Is A Good Time',
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
register => '1',
|
||||
target => $ng_tgt_timeperiods_base,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user