Skip to content

Commit

Permalink
Strip resource that do not belong to the module
Browse files Browse the repository at this point in the history
These directory only make sense on some operating systems and should
already be part of base system or the syslog-ng package.  Do need to
manage these in the patterndb module.
  • Loading branch information
smortex committed Sep 3, 2024
1 parent cee5229 commit 960f7d3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,13 @@
Boolean $manage_package = true,
Array[String[1]] $syslogng_modules = [],
Boolean $use_hiera = false,
Boolean $_manage_top_dirs = true,
Boolean $test_before_deploy = true
) {
# package
if $manage_package {
ensure_resource ( 'package', $package_name, { 'ensure' => 'installed' })
}
ensure_resource ( 'file', $temp_dir, { ensure => directory })
if $_manage_top_dirs {
ensure_resource ( 'file', "${base_dir}/etc", { ensure => 'directory' })
ensure_resource ( 'file', "${base_dir}/var", { ensure => 'directory' })
ensure_resource ( 'file', "${base_dir}/var/lib", { ensure => 'directory' })
}
ensure_resource (
'file', "${base_dir}/etc/syslog-ng",
{ ensure => 'directory' }
)
ensure_resource (
'file', "${base_dir}/var/lib/syslog-ng",
{ ensure => 'directory' }
Expand Down

0 comments on commit 960f7d3

Please sign in to comment.