aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2012-06-08 17:27:59 +0200
committerintrigeri <intrigeri@boum.org>2012-06-08 17:27:59 +0200
commitfae18b4cb919297eedfb7103e5d06ab76f93abff (patch)
tree2014949e5c2ed1d45393202f982e21f1562ec5db
parent9074e56dd294b7d150ede1a06501c966393e21e6 (diff)
downloadpuppet-tor-fae18b4cb919297eedfb7103e5d06ab76f93abff.tar.gz
puppet-tor-fae18b4cb919297eedfb7103e5d06ab76f93abff.tar.bz2
Decouple torsocks into its own class.
immerda's big decoupling commit (8f1d1c4) is too hard to apply in one shot in the current state of the shared branch, so let's pick bits of it one after the other.
-rw-r--r--manifests/init.pp5
-rw-r--r--manifests/torsocks.pp7
2 files changed, 7 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 0c38073..d916188 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -1,16 +1,11 @@
class tor {
if !$tor_ensure_version { $tor_ensure_version = 'installed' }
- if !$torsocks_ensure_version { $torsocks_ensure_version = 'installed'}
package { [ "tor", "tor-geoipdb" ]:
ensure => $tor_ensure_version,
}
- package { "torsocks":
- ensure => $torsocks_ensure_version,
- }
-
service { 'tor':
ensure => running,
enable => true,
diff --git a/manifests/torsocks.pp b/manifests/torsocks.pp
new file mode 100644
index 0000000..6346707
--- /dev/null
+++ b/manifests/torsocks.pp
@@ -0,0 +1,7 @@
+class tor::torsocks {
+ if !$torsocks_ensure_version { $torsocks_ensure_version = 'installed'}
+ include ::tor
+ package{'torsocks':
+ ensure => $torsocks_ensure_version,
+ }
+}