summaryrefslogtreecommitdiff
path: root/puppet/modules/obfsproxy/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/obfsproxy/manifests')
-rw-r--r--puppet/modules/obfsproxy/manifests/init.pp14
1 files changed, 9 insertions, 5 deletions
diff --git a/puppet/modules/obfsproxy/manifests/init.pp b/puppet/modules/obfsproxy/manifests/init.pp
index 35d47d13..a23cfa58 100644
--- a/puppet/modules/obfsproxy/manifests/init.pp
+++ b/puppet/modules/obfsproxy/manifests/init.pp
@@ -42,10 +42,11 @@ class obfsproxy (
}
file { '/etc/obfsproxy':
- ensure => directory,
- owner => $user,
- group => $user,
- mode => '0700',
+ ensure => directory,
+ owner => $user,
+ group => $user,
+ mode => '0700',
+ require => User[$user],
}
file { '/var/log/obfsproxy.log':
@@ -53,6 +54,7 @@ class obfsproxy (
owner => $user,
group => $user,
mode => '0640',
+ require => User[$user],
}
file { '/etc/logrotate.d/obfsproxy':
@@ -73,7 +75,9 @@ class obfsproxy (
subscribe => File[$conf],
require => [
Package['obfsproxy'],
- File['/etc/init.d/obfsproxy'] ]
+ File['/etc/init.d/obfsproxy'],
+ User[$user],
+ Group[$user]]
}