forked from alinefr/monit-formula
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to set other settings and import map inside templates
- Loading branch information
1 parent
c61a754
commit 3cadbf1
Showing
5 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
set daemon 10 | ||
{%- from "monit/map.jinja" import monit with context -%} | ||
set daemon {{ monit.daemon_interval }} | ||
set logfile {{ monit.logfile }} | ||
|
||
set httpd port {{ http_access.port }} and | ||
use address {{ http_access.bind }} | ||
{%- for host in http_access.allowed.hosts %} | ||
set httpd port {{ monit.http_access.port }} and | ||
use address {{ monit.http_access.bind }} | ||
{%- for host in monit.http_access.allowed.hosts %} | ||
allow {{ host }} | ||
{%- endfor %} | ||
{%- for userdata in http_access.allowed.users %} | ||
{%- for userdata in monit.http_access.allowed.users %} | ||
allow {{ userdata[0] }}:{{ userdata[1] }} | ||
{%- endfor %} | ||
|
||
include {{ config_includes }}/* | ||
include {{ monit.config_includes }}/* |