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:
Mathieu Bornoz 2013-04-29 12:37:13 +02:00
Родитель a726b40454
Коммит abc3074ccc
2 изменённых файлов: 4 добавлений и 11 удалений

Просмотреть файл

@ -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'],
}
}