ITL: add 'legacy-timeperiod' with update method

fixes #4038
This commit is contained in:
Michael Friedrich 2013-05-02 22:15:50 +02:00
parent f30a33b9cb
commit 76cc0061b3
3 changed files with 26 additions and 0 deletions

View File

@ -4,6 +4,7 @@ icinga2itl_DATA = \
itl.conf \
host.conf \
notification.conf \
timeperiod.conf \
service.conf \
service-common.conf \
standalone.conf

View File

@ -26,3 +26,4 @@ include "host.conf"
include "service.conf"
include "service-common.conf"
include "notification.conf"
include "timeperiod.conf"

24
itl/timeperiod.conf Normal file
View File

@ -0,0 +1,24 @@
/******************************************************************************
* Icinga 2 *
* Copyright (C) 2012 Icinga Development Team (http://www.icinga.org/) *
* *
* 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 2 *
* 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, write to the Free Software Foundation *
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
******************************************************************************/
template Timeperiod "legacy-timeperiod" {
methods = {
update = "LegacyTimePeriod"
}
}