diff options
author | irregulator <irregulator@riseup.net> | 2014-06-03 17:41:46 +0300 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2014-07-01 16:05:41 -0700 |
commit | aa3e39bc8342b6800129965efad72527b53596df (patch) | |
tree | abd29ef215ccf59c4353f79587d8f0fc9a323c35 /puppet/modules/obfsproxy/manifests | |
parent | ee8064a8281c3f933aeea219baec822ec8f52b84 (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.pp | 14 |
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]] } |