summaryrefslogtreecommitdiff
path: root/manifests/base.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2016-09-04 21:00:45 +0200
committermh <mh@immerda.ch>2016-09-04 21:00:45 +0200
commitd08f07eae13d02431b1c4142634f49e978b551de (patch)
tree9573ef0a099545e3189bc12dff5301de3ec41e96 /manifests/base.pp
parent24f919c9ffcff07a0ff0a5157ed5f5661c784b12 (diff)
make module also work on EL7
* user is different * user must not be managed * make access more safe, it doesn't make sense that the user running the daemon owns the config, nor the config directory.
Diffstat (limited to 'manifests/base.pp')
-rw-r--r--manifests/base.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/base.pp b/manifests/base.pp
index b98451b..31b9edb 100644
--- a/manifests/base.pp
+++ b/manifests/base.pp
@@ -1,8 +1,15 @@
# basic management of resources for tor
class tor::base {
- package { [ 'tor', 'tor-geoipdb' ]:
+ package {'tor':
ensure => $tor::ensure_version,
}
+ case $osfamily {
+ 'Debian': {
+ package {'tor-geoipdb':
+ ensure => $tor::ensure_version,
+ }
+ }
+ }
service { 'tor':
ensure => running,