git manage whole icinga conf dir
This commit is contained in:
@@ -31,10 +31,11 @@ icingaweb2_vhost:
|
|||||||
- watch_by:
|
- watch_by:
|
||||||
- service: nginx
|
- service: nginx
|
||||||
|
|
||||||
/etc/icinga2/conf.d:
|
/etc/icinga2:
|
||||||
git.cloned:
|
git.cloned:
|
||||||
- name: ssh://keiran5@git.keiran.us:9022/config-mgmt/icinga2-conf.d.git
|
- name: ssh://keiran5@git.keiran.us:9022/config-mgmt/icinga2-conf.git
|
||||||
- target: /etc/icinga2/conf.d
|
- user: nagios
|
||||||
|
- target: /etc/icinga2
|
||||||
|
|
||||||
# icingacli setup config directory
|
# icingacli setup config directory
|
||||||
# icingacli setup token create
|
# icingacli setup token create
|
||||||
|
|||||||
@@ -46,6 +46,3 @@ nagios:
|
|||||||
- template: jinja
|
- template: jinja
|
||||||
- source: salt://icinga2/files/client_sudo.jinja
|
- source: salt://icinga2/files/client_sudo.jinja
|
||||||
- check_cmd: /usr/sbin/visudo -c -f
|
- check_cmd: /usr/sbin/visudo -c -f
|
||||||
|
|
||||||
# FIXME
|
|
||||||
# [2023-12-06 00:13:41 -0500] warning/PluginNotificationTask: Notification command for object 'usfn-ovh!nvme0' (PID: 12270, arguments: '/etc/icinga2/scripts/mail-service-notification.sh') terminated with exit code 127, output: /etc/icinga2/scripts/mail-service-notification.sh: 20: /etc/icinga2/scripts/mail-service-notification.sh: mail: not found
|
|
||||||
|
|||||||
Reference in New Issue
Block a user