summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-04-18 21:20:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-04-18 21:20:46 -0300
commit5a05f18b06dec25f8bfe56d095129c2c8292ddb7 (patch)
treebe1e3c6a46ad847b7e3a62d26760e0210391e2f3 /manifests/init.pp
Initial import
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..0a4f649
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,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"],
+ }
+}