Skip to content

Commit 0d04363

Browse files
committed
configurable log_path mode
1 parent 4a3e080 commit 0d04363

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

manifests/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
ensure => directory,
2121
owner => $supervisord::user,
2222
group => $supervisord::group,
23-
mode => '0644'
23+
mode => $supervisord::log_path_mode
2424
}
2525

2626
if $supervisord::run_path != '/var/run' {

manifests/init.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
$scl_script = $supervisord::params::scl_script,
3030

3131
$log_path = $supervisord::params::log_path,
32+
$log_path_mode = $supervisord::params::log_path_mode,
3233
$log_file = $supervisord::params::log_file,
3334
$log_level = $supervisord::params::log_level,
3435
$logfile_maxbytes = $supervisord::params::logfile_maxbytes,

manifests/params.pp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
'RedHat': {
99
$unix_socket_group = 'nobody'
1010
$install_init = true
11+
$log_path_mode = '0770'
1112
case $::operatingsystem {
1213
'Amazon': {
1314
$init_type = 'init'
@@ -71,12 +72,14 @@
7172
$unix_socket_group = 'nogroup'
7273
$install_init = true
7374
$executable_path = '/usr/local/bin'
75+
$log_path_mode = '0755'
7476
}
7577
default: {
7678
$init_defaults = false
7779
$unix_socket_group = 'nogroup'
7880
$install_init = false
7981
$executable_path = '/usr/local/bin'
82+
$log_path_mode = '0755'
8083
}
8184
}
8285

0 commit comments

Comments
 (0)