aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: c5854894e0c5aba9e3b174fd86b23f27b447d440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import "polipo.pp"
import "daemon.pp"
import "relay.pp"
import "bridge.pp"

class tor {
  package { "privoxy":
    ensure => absent,
  }

  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"],
  }
}