try and sort nagios stuff

This commit is contained in:
Kevin Fenzi 2018-05-26 23:16:42 +00:00
parent 2ac3d127d2
commit 7880a0bf23
15 changed files with 16 additions and 16 deletions

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'bodhost' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['cloud'] %}
{% for host in groups['cloud']|sort %}
{% if host.startswith('copr') and nagios_location == 'external' %}
{% else %}
define host {

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'coloamer' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'dedicatedsolutions' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'host1plus' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'ibiblio' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'internetx' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'osuosl' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in vars["phx2_external"] %}
{% for host in vars["phx2_external"]|sort %}
define host {
host_name {{ host }}
alias {{ host }}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'phx2' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}

View file

@ -1,4 +1,4 @@
{% for host in vars['phx2_management_hosts'] %}
{% for host in vars['phx2_management_hosts']|sort %}
define host {
host_name {{ host }}
alias {{ host }}
@ -11,7 +11,7 @@ define host {
##
## These hosts may have limited ssh/http/https
{% for host in vars['phx2_management_limited'] %}
{% for host in vars['phx2_management_limited']|sort %}
define host {
host_name {{ host }}
alias {{ host }}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'rdu-cc' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'rdu' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'staging' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}

View file

@ -1,4 +1,4 @@
{% for host in groups['all'] %}
{% for host in groups['all']|sort %}
{% if hostvars[host].datacenter == 'tummy' and hostvars[host].nagios_Check_Services['ping'] == true %}
define host {
{% if vars['nagios_location'] == 'internal' %}