summaryrefslogtreecommitdiff
path: root/manifests/polipo/base.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-08 17:34:13 +0200
committerintrigeri <intrigeri@boum.org>2012-06-08 17:34:13 +0200
commitc59fe7465bedc1157ee9e314938fdc10c4158cf5 (patch)
tree1627a3be9f810c614c430d1003d68a74ed7a524d /manifests/polipo/base.pp
parentfae18b4cb919297eedfb7103e5d06ab76f93abff (diff)
Factor out Polipo into base and Debian -specific classes.
Diffstat (limited to 'manifests/polipo/base.pp')
-rw-r--r--manifests/polipo/base.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/polipo/base.pp b/manifests/polipo/base.pp
new file mode 100644
index 0000000..81cfe9c
--- /dev/null
+++ b/manifests/polipo/base.pp
@@ -0,0 +1,21 @@
+class tor::polipo::base {
+ package { "polipo":
+ ensure => installed,
+ }
+
+ file { "/etc/polipo/config":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => "puppet:///modules/tor/polipo.conf",
+ require => Package["polipo"],
+ notify => Service["polipo"],
+ }
+
+ service { "polipo":
+ ensure => running,
+ enable => true,
+ require => [ Package["polipo"], Service["tor"] ],
+ }
+}