diff options
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 26 |
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"], + } } |