mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-25 02:50:15 +08:00
move nagios ipa file to template to make less phx2 dependent
This commit is contained in:
@@ -193,7 +193,6 @@
|
||||
- file_age.cfg
|
||||
- fmn.cfg
|
||||
- haproxy.cfg
|
||||
- ipa.cfg
|
||||
- koji.cfg
|
||||
- koschei.cfg
|
||||
- locking.cfg
|
||||
@@ -326,6 +325,7 @@
|
||||
- name: Template over services (internal)
|
||||
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
|
||||
with_items:
|
||||
- ipa.cfg
|
||||
- phx2-mgmt.cfg
|
||||
- mirrorlist-proxies.cfg
|
||||
when: env == "production" and nagios_location == "internal"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
define servicegroup {
|
||||
servicegroup_name freemedia
|
||||
alias FreeMedia
|
||||
members {% for host in groups['sundries'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
||||
members {% for host in groups['sundries']|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, http-freemedia-internal{% if not loop.last %}, {% endif %}{% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
define servicegroup {
|
||||
servicegroup_name ipa
|
||||
alias IPA Servers
|
||||
members {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, IPA Replication Status{% if not loop.last %}, {% endif %}{% endif%}{% endfor %}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
define service {
|
||||
host_name ipa01.phx2.fedoraproject.org,ipa02.phx2.fedoraproject.org
|
||||
host_name {% for host in groups['ipa'] %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}},{% endif%}{% endfor %}
|
||||
service_description IPA Replication Status
|
||||
check_command check_by_nrpe!check_ipa_replication
|
||||
use lighttemplate
|
||||
servicegroups ipa
|
||||
}
|
||||
Reference in New Issue
Block a user