ansible-role-nagios/templates/timeperiods.cfg.j2

33 lines
1.1 KiB
Text
Raw Permalink Normal View History

2022-10-11 09:19:02 +02:00
###############################################################################
# ATTENTION!!! FILE MANAGED BY ANSIBLE ROLE NAGIOS
# TIMEPERIODS.CFG - SAMPLE TIMEPERIOD DEFINITIONS
#
#
# NOTES: This config file provides you with some example timeperiod definitions
# that you can reference in host, service, contact, and dependency
# definitions.
#
# You don't need to keep timeperiods in a separate file from your other
# object definitions. This has been done just to make things easier to
# understand.
#
###############################################################################
###############################################################################
###############################################################################
#
# TIME PERIODS
#
###############################################################################
###############################################################################
{% if timeperiods is defined %}{% for period in timeperiods %}
define timeperiod{
{% for key, value in period.items() %}
{{ key }} {{ value }}
{% endfor %}
}
{% endfor %}{% endif %}