mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-12 02:46:20 +08:00
Create an IPA service for monitoring and use it for check-ipa-free-ids
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
@@ -105,10 +105,28 @@
|
||||
- config
|
||||
notify: Restart collectd
|
||||
|
||||
- name: Let collectd talk to the RabbitMQ management interface
|
||||
- name: Let collectd talk to the REST API
|
||||
ansible.posix.seboolean:
|
||||
name: collectd_tcp_network_connect
|
||||
state: yes
|
||||
persistent: yes
|
||||
tags:
|
||||
- collectd
|
||||
|
||||
|
||||
#
|
||||
# Nagios monitoring
|
||||
#
|
||||
- name: Create the service for nagios monitoring
|
||||
ansible.builtin.include_role:
|
||||
name: "keytab/service" # noqa role-name[path]
|
||||
apply:
|
||||
tags:
|
||||
- ipa/server
|
||||
- config
|
||||
- keytab
|
||||
vars:
|
||||
host: "{{ ipa_server }}" # noqa: var-naming[no-role-prefix]
|
||||
service: monitoring # noqa: var-naming[no-role-prefix]
|
||||
owner_user: nagios
|
||||
owner_group: nagios
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
command[check_ipa_replication]={{ libdir }}/nagios/plugins/check_ipa_replication -u ldaps://localhost/
|
||||
command[check_ipa_free_ids]={{ libdir }}/nagios/plugins/check_ipa_free_ids.py -k /etc/krb5.stage-users_{{ ipa_server }}.keytab
|
||||
command[check_ipa_free_ids]={{ libdir }}/nagios/plugins/check_ipa_free_ids.py -k /etc/krb5.monitoring_{{ ipa_server }}.keytab
|
||||
|
||||
Reference in New Issue
Block a user