Skip to content

Commit

Permalink
Remove unused sites
Browse files Browse the repository at this point in the history
  • Loading branch information
DasSkelett committed Oct 3, 2024
1 parent 5512129 commit 4224c34
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions icinga2/host.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{%- set location = salt['mine.get'](node_id,'minion_location', tgt_type='glob')[node_id] %}
{%- set overlay_address = salt['mine.get'](node_id,'minion_overlay_address', tgt_type='glob')[node_id] %}
{%- set minion_external_address6 = salt['mine.get'](node_id,'minion_external_ip6', tgt_type='glob')[node_id] %}
{%- set sites = salt['pillar.get']('netbox:config_context:sites').values()|sum(start=[]) %}

{%- if 'icinga2_server' not in tags %}
object Endpoint "{{ node_id }}" {
Expand Down Expand Up @@ -44,12 +43,6 @@ object Host "{{ node_id }}" {
{%- endfor %}
]

vars.sites = [
{%- for site in sites|sort %}
"{{ site }}",
{%- endfor %}
]

vars.location = "{{ location }}"

vars.disk_wfree = "4%"
Expand Down

0 comments on commit 4224c34

Please sign in to comment.