separating multinode from app_type
This commit is contained in:
parent
3579682de8
commit
e150fa3625
2 changed files with 32 additions and 18 deletions
|
@ -101,6 +101,23 @@ define sunetdrive::app_type (
|
||||||
content => template('sunetdrive/application/get_containers'),
|
content => template('sunetdrive/application/get_containers'),
|
||||||
mode => '0744',
|
mode => '0744',
|
||||||
}
|
}
|
||||||
|
if ($nodenumber == 3) {
|
||||||
|
file { '/usr/lib/nagios/plugins/check_nextcloud_mounts.py':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
content => template('sunetdrive/application/check_nextcloud_mounts.py'),
|
||||||
|
mode => '0744',
|
||||||
|
}
|
||||||
|
sunet::sudoer {'nagios_run_nextcloud_mounts_command':
|
||||||
|
user_name => 'nagios',
|
||||||
|
collection => 'nrpe_nextcloud_mounts_check',
|
||||||
|
command_line => '/usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
||||||
|
}
|
||||||
|
sunet::nagios::nrpe_command {'check_nextcloud_mounts':
|
||||||
|
command_line => '/usr/bin/sudo /usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($nodenumber == 3) {
|
if ($nodenumber == 3) {
|
||||||
file { '/usr/local/bin/scan_external_mounts':
|
file { '/usr/local/bin/scan_external_mounts':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
@ -388,22 +405,4 @@ define sunetdrive::app_type (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if $facts['networking']['hostname'] == 'node1' or $facts['networking']['hostname'] =~ /^multinode[1-9]+$/{
|
|
||||||
file { '/usr/lib/nagios/plugins/check_nextcloud_mounts.py':
|
|
||||||
ensure => present,
|
|
||||||
force => true,
|
|
||||||
owner => 'root',
|
|
||||||
group => 'root',
|
|
||||||
content => template('sunetdrive/application/check_nextcloud_mounts.py'),
|
|
||||||
mode => '0744',
|
|
||||||
}
|
|
||||||
sunet::sudoer {'nagios_run_nextcloud_mounts_command':
|
|
||||||
user_name => 'nagios',
|
|
||||||
collection => 'nrpe_nextcloud_mounts_check',
|
|
||||||
command_line => '/usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
|
||||||
}
|
|
||||||
sunet::nagios::nrpe_command {'check_nextcloud_mounts':
|
|
||||||
command_line => '/usr/bin/sudo /usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,21 @@ class sunetdrive::multinode (
|
||||||
content => template('sunetdrive/application/get_containers'),
|
content => template('sunetdrive/application/get_containers'),
|
||||||
mode => '0744',
|
mode => '0744',
|
||||||
}
|
}
|
||||||
|
file { '/usr/lib/nagios/plugins/check_nextcloud_mounts.py':
|
||||||
|
ensure => present,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
content => template('sunetdrive/application/check_nextcloud_mounts.py'),
|
||||||
|
mode => '0744',
|
||||||
|
}
|
||||||
|
sunet::sudoer {'nagios_run_nextcloud_mounts_command':
|
||||||
|
user_name => 'nagios',
|
||||||
|
collection => 'nrpe_nextcloud_mounts_check',
|
||||||
|
command_line => '/usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
||||||
|
}
|
||||||
|
sunet::nagios::nrpe_command {'check_nextcloud_mounts':
|
||||||
|
command_line => '/usr/bin/sudo /usr/lib/nagios/plugins/check_nextcloud_mounts.py'
|
||||||
|
}
|
||||||
file { '/usr/local/bin/scan_external_mounts':
|
file { '/usr/local/bin/scan_external_mounts':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
force => true,
|
force => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue