use rsyslog::snippet for client and server configs
Doesn't feature any functional change, but it seems cleaner to use that definition to avoid repeating dependencies and paths.
This commit is contained in:
Родитель
a726b40454
Коммит
abc3074ccc
|
@ -38,12 +38,9 @@ class rsyslog::client (
|
|||
default => template($custom_config),
|
||||
}
|
||||
|
||||
file { $rsyslog::client_conf:
|
||||
rsyslog::snippet {'client':
|
||||
ensure => present,
|
||||
owner => root,
|
||||
group => $rsyslog::run_group,
|
||||
content => $content_real,
|
||||
require => Class['rsyslog::config'],
|
||||
notify => Class['rsyslog::service'],
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,12 +39,8 @@ class rsyslog::server (
|
|||
default => template($custom_config),
|
||||
}
|
||||
|
||||
file { $rsyslog::server_conf:
|
||||
rsyslog::snippet {'server':
|
||||
ensure => present,
|
||||
owner => 'root',
|
||||
group => $rsyslog::run_group,
|
||||
content => $real_content,
|
||||
require => Class['rsyslog::config'],
|
||||
notify => Class['rsyslog::service'],
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче