summaryrefslogtreecommitdiff
path: root/puppet/modules/obfsproxy/manifests
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-06-03 17:41:46 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:41 -0700
commitaa3e39bc8342b6800129965efad72527b53596df (patch)
treeabd29ef215ccf59c4353f79587d8f0fc9a323c35 /puppet/modules/obfsproxy/manifests
parentee8064a8281c3f933aeea219baec822ec8f52b84 (diff)
Add User resource requirement for obfsproxy service, log, etc dir
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]]
}