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.
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,
--- /dev/null
+class tor::torsocks {
+ if !$torsocks_ensure_version { $torsocks_ensure_version = 'installed'}
+ include ::tor
+ package{'torsocks':
+ ensure => $torsocks_ensure_version,
+ }
+}