aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 0a4f6493801ff63f77f2189cc999ac5a19f4d708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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,
    source  => "puppet://$server/modules/polipo/files/polipo.conf",
    notify  => Service["polipo"],
  }
}