mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 22:19:48 +00:00
puppet: Move nagios homedir to /var/lib/nagios.
That's where it is supposed to be, and besides, that's what a Nagios server is going to expect it to be. (imported from commit c273f18533909fa8eac182246dbbe498a5381f6c)
This commit is contained in:
@@ -102,24 +102,36 @@ class humbug::base {
|
|||||||
uid => '1050',
|
uid => '1050',
|
||||||
gid => '1050',
|
gid => '1050',
|
||||||
shell => '/bin/bash',
|
shell => '/bin/bash',
|
||||||
home => '/home/nagios',
|
home => '/var/lib/nagios',
|
||||||
managehome => true,
|
managehome => true,
|
||||||
}
|
}
|
||||||
file { '/home/nagios/.ssh':
|
file { '/var/lib/nagios/':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
require => User['nagios'],
|
require => User['nagios'],
|
||||||
owner => "nagios",
|
owner => "nagios",
|
||||||
group => "nagios",
|
group => "nagios",
|
||||||
mode => 600,
|
mode => 600,
|
||||||
}
|
}
|
||||||
file { '/home/nagios/.ssh/authorized_keys':
|
file { '/var/lib/nagios/.ssh':
|
||||||
|
ensure => directory,
|
||||||
|
require => File['/var/lib/nagios/'],
|
||||||
|
owner => "nagios",
|
||||||
|
group => "nagios",
|
||||||
|
mode => 600,
|
||||||
|
}
|
||||||
|
file { '/var/lib/nagios/.ssh/authorized_keys':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
require => File['/home/nagios/.ssh'],
|
require => File['/var/lib/nagios/.ssh'],
|
||||||
mode => 600,
|
mode => 600,
|
||||||
owner => "nagios",
|
owner => "nagios",
|
||||||
group => "nagios",
|
group => "nagios",
|
||||||
source => 'puppet:///modules/humbug/nagios_authorized_keys',
|
source => 'puppet:///modules/humbug/nagios_authorized_keys',
|
||||||
}
|
}
|
||||||
|
file { '/home/nagios':
|
||||||
|
ensure => absent,
|
||||||
|
force => true,
|
||||||
|
recurse => true,
|
||||||
|
}
|
||||||
file { "/usr/lib/nagios/plugins/":
|
file { "/usr/lib/nagios/plugins/":
|
||||||
require => Package[nagios-plugins-basic],
|
require => Package[nagios-plugins-basic],
|
||||||
recurse => true,
|
recurse => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user