copr: use already existing copr.cfg

This commit is contained in:
Silvie Chlupova 2022-01-20 13:23:31 +01:00
parent 8c5dc50c7e
commit 6fa2999dbf
3 changed files with 24 additions and 33 deletions

View file

@ -39,3 +39,27 @@ define service {
check_command check_by_nrpe!check_copr_cdn
use defaulttemplate
}
define service {
hostgroup_name copr_dist_git_aws
service_description http-copr-be.aws.fedoraproject.org
check_command check_https!copr-be.aws.fedoraproject.org
max_check_attempts 8
use websitetemplate
}
define service {
hostgroup_name copr_front_aws
service_description http-copr-dist-git.fedorainfracloud.org
check_command check_website_ssl!copr-dist-git.fedorainfracloud.org!/cgit/!Git repository browser
max_check_attempts 8
use websitetemplate
}
define service {
hostgroup_name copr_back_aws
service_description http-copr.fedorainfracloud.org
check_command check_website_ssl!copr.fedorainfracloud.org!Copr hosts
max_check_attempts 8
use websitetemplate
}

View file

@ -394,16 +394,6 @@
- nagios_config
notify: restart nagios
- name: Template over services
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
with_items:
- copr.cfg
when: env == "production"
tags:
- nagios_server
- nagios_config
notify: restart nagios
- name: Template over services (both)
template: src=nagios/services/{{item}}.j2 dest=/etc/nagios/services/{{item}} mode=0644 owner=root group=root
with_items:

View file

@ -1,23 +0,0 @@
define service {
hostgroup_name copr_dist_git_aws
service_description http-copr-be.aws.fedoraproject.org
check_command check_https!copr-be.aws.fedoraproject.org
max_check_attempts 8
use websitetemplate
}
define service {
hostgroup_name copr_front_aws
service_description http-copr-dist-git.fedorainfracloud.org
check_command check_website_ssl!copr-dist-git.fedorainfracloud.org!/cgit/!Git repository browser
max_check_attempts 8
use websitetemplate
}
define service {
hostgroup_name copr_back_aws
service_description http-copr.fedorainfracloud.org
check_command check_website_ssl!copr.fedorainfracloud.org!Copr hosts
max_check_attempts 8
use websitetemplate
}