mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 11:00:32 +08:00
why did i have hostgroups in servicegroups directory
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
define service {
|
||||
hostgroup_name virtservers
|
||||
service_description Disk Space /
|
||||
service_description Disk_Space_/
|
||||
check_command check_by_nrpe!check_disk_/
|
||||
use disktemplate
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
###############
|
||||
# KVM Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name virtservers
|
||||
alias Virtual ServiceGroup
|
||||
members {% for host in groups['virtservers'] %} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
define servicegroup {
|
||||
servicegroup_name retrace
|
||||
define hostgroup {
|
||||
hostgroup_name retrace
|
||||
alias Retrace Hosts
|
||||
members {% for host in groups['retrace'] %}{{host}}, Disk space /,{{host}},Total Processes,{{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH, {% endfor %}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
###############
|
||||
# KVM Servers
|
||||
###############
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name phx-virt
|
||||
alias PHX Virtual ServiceGroup
|
||||
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter == 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
define hostgroup {
|
||||
hostgroup_name remote-virt
|
||||
alias PHX Virtual ServiceGroup
|
||||
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter != 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user