diff options
Diffstat (limited to 'manifests/daemon.pp')
-rw-r--r-- | manifests/daemon.pp | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/manifests/daemon.pp b/manifests/daemon.pp index d8a18e8..7b28cd4 100644 --- a/manifests/daemon.pp +++ b/manifests/daemon.pp @@ -1,10 +1,30 @@ -class tor::daemon inherits tor { +class tor::daemon inherits tor::polipo { - include polipo + group { "debian-tor": + ensure => present, + allowdupe => false, + } + + Package[ "tor", "torsocks" ] { + require => File["/var/tor"], + } + + user { "debian-tor": + allowdupe => false, + comment => "tor user,,,", + ensure => present, + home => "/var/tor", + shell => "/bin/sh", + gid => "debian-tor", + require => Group["debian-tor"], + } - service { "tor": - ensure => running, - require => [ Package['tor'], Service["polipo"] ], + file { "/var/tor": + ensure => directory, + mode => 0755, + owner => debian-tor, + group => debian-tor, + require => User["debian-tor"], } define config( $socks_port = 9050, |