Merge branch 'master' of gitops.sunet.se:eid-ops

This commit is contained in:
Fredrik Kjellman 2024-06-03 07:40:16 +02:00
commit 625ba6e642
No known key found for this signature in database
GPG key ID: C0C13A002106594A
4 changed files with 45 additions and 25 deletions

View file

@ -913,6 +913,28 @@ class nrpe {
sunet::nagios::nrpe_command {'check_needrestart':
command_line => "sudo /usr/sbin/needrestart -p -l"
}
exec { "create_${name}_service_dir":
command => '/bin/mkdir -p /etc/systemd/system/nagios-nrpe-server.service.d/',
unless => '/usr/bin/test -d /etc/systemd/system/nagios-nrpe-server.service.d/',
}
exec { "${name}_daemon_reload":
command => 'systemctl daemon-reload',
refreshonly => true,
}
$str = "# Some NRPE checks will get fishy results when using a PrivateTmp.
# E.g check_apt: https://askubuntu.com/questions/1415415/check-apt-issue-with-nagios
[Service]
PrivateTmp=false"
file {
'/etc/systemd/system/nagios-nrpe-server.service.d/privatetmp.conf':
ensure => file,
mode => '0444',
content => $str,
require => [Exec["create_${name}_service_dir"], Package[nagios-nrpe-server]],
notify => [Exec["${name}_daemon_reload"],Service[nagios-nrpe-server]],
}
}
class redis_cluster_node {

View file

@ -1,13 +1 @@
---
submission_ip:
- 193.10.93.2 # sunet test ip
- 2001:6b0:7:c::/64 # sunet test ip
- 109.105.111.111 # nagiosxi.nordu.net
- 2001:948:4:6::111 # nagiosxi.nordu.net
- 85.235.7.170 # idm
- 94.176.224.229 # monitor-fre-3
- 2001:6b0:64:4::229 # monitor-fre-3
- 94.176.224.101 # monitor-tug-3
- 2001:6b0:63:4::101 # monitor-tug-3
- 89.47.184.215 # nic
- 2001:6b0:5a:4020::330 # nic

View file

@ -1,17 +1,4 @@
---
submission_ip:
- 193.10.93.2 # sunet test ip
- 2001:6b0:7:c::/64 # sunet test ip
- 109.105.111.111 # nagiosxi.nordu.net
- 2001:948:4:6::111 # nagiosxi.nordu.net
- 85.235.7.170 # idm
- 94.176.224.229 # monitor-fre-3
- 2001:6b0:64:4::229 # monitor-fre-3
- 94.176.224.101 # monitor-tug-3
- 2001:6b0:63:4::101 # monitor-tug-3
- 89.47.184.215 # nic
- 2001:6b0:5a:4020::330 # nic
relay_ip:
- 89.47.185.206
- 2001:6b0:5a:4020::225

View file

@ -0,0 +1,23 @@
---
submission_ip:
- 193.10.93.2 # sunet test ip
- 2001:6b0:7:c::/64 # sunet test ip
- 109.105.111.111 # nagiosxi.nordu.net
- 2001:948:4:6::111 # nagiosxi.nordu.net
- 85.235.7.170 # idm
- 94.176.224.229 # monitor-fre-3
- 2001:6b0:64:4::229 # monitor-fre-3
- 94.176.224.101 # monitor-tug-3
- 2001:6b0:63:4::101 # monitor-tug-3
- 89.47.184.215 # nic
- 2001:6b0:5a:4020::330 # nic
- 89.45.236.223 # idm-sto3-qa-app-2.komreg.net
- 89.45.237.180 # idm-sto3-test-app-3.komreg.net
- 89.47.184.15 # idm-sto1-qa-app-1.komreg.net
- 89.47.184.233 # idm-sto1-qa-app-3.komreg.net
- 89.47.185.124 # idm-sto1-test-app-1.komreg.net
- 2001:6b0:5a:4020::328 # idm-sto1-qa-app-1.komreg.net
- 2001:6b0:5a:4020::c2 # idm-sto1-qa-app-3.komreg.net
- 2001:6b0:5a:4020::2fe # idm-sto1-test-app-1.komreg.net
- 2001:6b0:40::3c # idm-sto3-qa-app-2.komreg.net
- 2001:6b0:40::22f # idm-sto3-test-app-3.komreg.net