Skip to content

Commit a60bd0b

Browse files
committed
Fix default uid:gid for Debian log_dir (fixes: #46)
1 parent 64b39a7 commit a60bd0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

manifests/config.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
file { $stunnel_dirs:
1414
ensure => directory,
15-
owner => 'root',
16-
group => 'root',
15+
owner => $stunnel::data::uid,
16+
group => $stunnel::data::gid,
1717
mode => '0555',
1818
}
1919
}

manifests/data.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
$conf_d_dir = '/etc/stunnel/conf.d'
3434
$cert_dir = '/etc/stunnel/certs'
3535
$log_dir = '/var/log/stunnel4'
36-
$setgid = 'root'
37-
$setuid = 'root'
36+
$setgid = 'stunnel4'
37+
$setuid = 'stunnel4'
3838

3939
if ($::operatingsystem == 'Ubuntu' and versioncmp($::operatingsystemrelease, '15.04') >= 0) or
4040
($::operatingsystem == 'Debian' and versioncmp($::operatingsystemrelease, '8.0') >= 0) {

0 commit comments

Comments
 (0)