aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 4dbc050ede17d5c7d61708e39d05fd14e618371e (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
class tor {
  package { [ "tor", "polipo" ]:
    ensure => installed,
  }

  service { "tor":
    ensure  => running,
    require => [ Package['tor'], Service["polipo"] ],
  }

  service { "polipo":
    ensure  => running,
    require => Package["polipo"],
  }

  file { "/etc/polipo/config":
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => 0644,
    source  => "puppet://$server/modules/polipo/polipo.conf",
    notify  => Service["polipo"],
  }
}