aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2012-01-08 01:02:13 -0200
committerdrebs <drebs@riseup.net>2012-01-08 01:02:13 -0200
commit00349b7ba959f5ad133a9a0ec1e440a10fa93353 (patch)
tree00a12dc019538d6bf6cde392517b384ca386ae34 /manifests/init.pp
parent9e6181174be9c98732517c897a04dc922d558e3c (diff)
downloadpuppet-tor-00349b7ba959f5ad133a9a0ec1e440a10fa93353.tar.gz
puppet-tor-00349b7ba959f5ad133a9a0ec1e440a10fa93353.tar.bz2
completing default relay config
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp26
1 files changed, 25 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index bf4f696..c585489 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -8,7 +8,31 @@ class tor {
ensure => absent,
}
- package { [ "tor", "polipo", "torsocks" ]:
+ package { [ "tor", "torsocks" ]:
ensure => installed,
}
+
+ group { "debian-tor":
+ ensure => present,
+ allowdupe => false,
+ require => Package["tor"],
+ }
+
+ user { "debian-tor":
+ allowdupe => false,
+ comment => "tor user,,,",
+ ensure => present,
+ home => "/var/tor",
+ shell => "/bin/sh",
+ gid => "debian-tor",
+ require => Group["debian-tor"],
+ }
+
+ file { "/var/tor":
+ ensure => directory,
+ mode => 0755,
+ owner => debian-tor,
+ group => debian-tor,
+ require => User["debian-tor"],
+ }
}