summaryrefslogtreecommitdiff
path: root/puppet/modules/obfsproxy/manifests
diff options
context:
space:
mode:
authorirregulator <irregulator@riseup.net>2014-05-23 17:28:32 +0300
committerelijah <elijah@riseup.net>2014-07-01 16:05:41 -0700
commit7a54923591125894440b9ff7020e4b413a1c6fb5 (patch)
treeb54089264bdd00ad8ea333a60ffea2e3eccc1f71 /puppet/modules/obfsproxy/manifests
parent2f318f0be937f0bace467640f4011ba422a736b7 (diff)
Address logging for obfsproxy daemon
Create obfsproxy directory in /var/log, specify log file when obfsproxy is spawned by init script, create a logrotate configuration for obfsproxy's logs.
Diffstat (limited to 'puppet/modules/obfsproxy/manifests')
-rw-r--r--puppet/modules/obfsproxy/manifests/init.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/puppet/modules/obfsproxy/manifests/init.pp b/puppet/modules/obfsproxy/manifests/init.pp
index 456fe1a7..9ba2d0fd 100644
--- a/puppet/modules/obfsproxy/manifests/init.pp
+++ b/puppet/modules/obfsproxy/manifests/init.pp
@@ -48,6 +48,22 @@ class obfsproxy (
mode => '0700',
}
+ file { '/var/log/obfsproxy':
+ ensure => directory,
+ owner => $user,
+ group => $user,
+ mode => '0750',
+ }
+
+ file { '/etc/logrotate.d/obfsproxy':
+ ensure => present,
+ source => 'puppet:///modules/obfsproxy/obfsproxy_logrotate',
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ require => File['/var/log/obfsproxy'],
+ }
+
package { 'obfsproxy':
ensure => present,
}