summaryrefslogtreecommitdiff
path: root/manifests/polipo/base.pp
blob: df2d6ea62e6523f5c97389c95d4ca067cd4ae531 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# manage polipo resources
class tor::polipo::base {
  package{'polipo':
    ensure => present,
  }

  file { '/etc/polipo/config':
    ensure  => present,
    owner   => root,
    group   => root,
    mode    => '0644',
    source  => 'puppet:///modules/tor/polipo/polipo.conf',
    require => Package['polipo'],
    notify  => Service['polipo'],
  }

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