Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Monitoring
netbox-icinga-config-generator
Commits
bdc16022
Verified
Commit
bdc16022
authored
Feb 16, 2022
by
Adrian Schollmeyer
Browse files
templates: Update formatting
parent
4e8859d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
netbox_icinga_generator/templates/generic-host.j2
View file @
bdc16022
...
...
@@ -24,10 +24,10 @@ object Host "{{ vars.name }}" {
// === SYSTEM HEALTH CHECKS ===
{%- if vars.apt %}vars.apt_{{ vars.apt }} = {}{% endif %}
{% for check in vars.procs %}
{%
-
for check in vars.procs %}
vars.procs["{{ check }}"] = {}{% endfor %}
{% for disk in vars.smart %}
{%
-
for disk in vars.smart %}
vars.smart["{{ disk }}"] = {}{% endfor %}
{%- for disk in vars.smart_sectors %}
vars.smart_sectors["{{ disk }}"] = {}{% endfor %}
...
...
@@ -40,3 +40,4 @@ object Host "{{ vars.name }}" {
import "netbox-generated-host-extras"
}
// vim: sw=8 ts=8 noexpandtab
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment