summaryrefslogtreecommitdiff
path: root/manifests/polipo/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-28 16:50:30 +0200
committermh <mh@immerda.ch>2011-10-28 16:51:58 +0200
commit8f1d1c4ef7a1298d448416997218dafb5d40166f (patch)
tree069afbe224ffeebd7d0633df9a52a0e3c039d6b3 /manifests/polipo/base.pp
parent5d2516c3a7a6b34399ff7b856fc9900ef1e41294 (diff)
decouple polipo and torsocks into their own subclasses, so we can for example also just install tor
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..a634920
--- /dev/null
+++ b/manifests/polipo/base.pp
@@ -0,0 +1,21 @@
+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"],
+ before => Service["tor"],
+ }
+
+ service { "polipo":
+ ensure => running,
+ enable => true,
+ }
+}