Skip to content

Commit a79abc2

Browse files
author
Phil Friderici
committed
Restrict access for 'others'
1 parent 512843b commit a79abc2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manifests/config.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@
2121
if($logstash::ensure == 'present') {
2222
file { $logstash::config_dir:
2323
ensure => directory,
24-
mode => '0755',
24+
mode => '0750',
2525
}
2626

2727
file { "${logstash::config_dir}/conf.d":
2828
ensure => directory,
2929
purge => $logstash::purge_config,
3030
recurse => $logstash::purge_config,
31-
mode => '0775',
31+
mode => '0770',
3232
notify => Service['logstash'],
3333
}
3434

3535
file { "${logstash::config_dir}/patterns":
3636
ensure => directory,
3737
purge => $logstash::purge_config,
3838
recurse => $logstash::purge_config,
39-
mode => '0755',
39+
mode => '0750',
4040
}
4141
}
4242
elsif($logstash::ensure == 'absent') {

manifests/service.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
File {
4040
owner => $logstash::logstash_user,
4141
group => $logstash::logstash_group,
42-
mode => '0644',
42+
mode => '0640',
4343
notify => Exec['logstash-system-install'],
4444
}
4545

0 commit comments

Comments
 (0)