Skip to content

Commit

Permalink
Restrict access for 'others'
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Friderici committed Dec 5, 2023
1 parent 7f765ac commit c679f75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@
if($logstash::ensure == 'present') {
file { $logstash::config_dir:
ensure => directory,
mode => '0755',
mode => '0750',
}

file { "${logstash::config_dir}/conf.d":
ensure => directory,
purge => $logstash::purge_config,
recurse => $logstash::purge_config,
mode => '0775',
mode => '0770',
notify => Service['logstash'],
}

file { "${logstash::config_dir}/patterns":
ensure => directory,
purge => $logstash::purge_config,
recurse => $logstash::purge_config,
mode => '0755',
mode => '0750',
}
}
elsif($logstash::ensure == 'absent') {
Expand Down
2 changes: 1 addition & 1 deletion manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
File {
owner => $logstash::config_user,
group => $logstash::config_group,
mode => '0644',
mode => '0640',
notify => Exec['logstash-system-install'],
}

Expand Down

0 comments on commit c679f75

Please sign in to comment.