summaryrefslogtreecommitdiff
path: root/manifests/daemon
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2017-01-23 12:51:35 -0500
committerMicah Anderson <micah@riseup.net>2017-01-23 12:51:35 -0500
commit6b723aec332a7034b80312431d5d7f55dc513136 (patch)
treeafe07983b73618518065e51b0864d2db5a0c3dc9 /manifests/daemon
parent46ceed3ff73a9f33264eef179b0e2a9cf92ad151 (diff)
parent6e60d2c772be435fe375778523dec05239a43d0d (diff)
Merge remote-tracking branch 'origin' into riseup
Diffstat (limited to 'manifests/daemon')
-rw-r--r--manifests/daemon/base.pp6
-rw-r--r--manifests/daemon/control.pp15
-rw-r--r--manifests/daemon/dns.pp2
-rw-r--r--manifests/daemon/map_address.pp2
-rw-r--r--manifests/daemon/transparent.pp2
5 files changed, 15 insertions, 12 deletions
diff --git a/manifests/daemon/base.pp b/manifests/daemon/base.pp
index 63d7bc4..c0b1640 100644
--- a/manifests/daemon/base.pp
+++ b/manifests/daemon/base.pp
@@ -49,9 +49,9 @@ class tor::daemon::base inherits tor::base {
# tor configuration file
concat { $tor::daemon::config_file:
- mode => '0600',
- owner => 'debian-tor',
- group => 'debian-tor',
+ mode => '0600',
+ owner => 'debian-tor',
+ group => 'debian-tor',
}
# config file headers
diff --git a/manifests/daemon/control.pp b/manifests/daemon/control.pp
index 0172656..d19a1db 100644
--- a/manifests/daemon/control.pp
+++ b/manifests/daemon/control.pp
@@ -7,13 +7,16 @@ define tor::daemon::control(
$cookie_auth_file_group_readable = '',
$ensure = present ) {
- if $cookie_authentication == '0' and $hashed_control_password == '' and $ensure != 'absent' {
- fail('You need to define the tor control password')
- }
+ if $cookie_authentication == '0'
+ and $hashed_control_password == ''
+ and $ensure != 'absent' {
+ fail('You need to define the tor control password')
+ }
- if $cookie_authentication == 0 and ($cookie_auth_file != '' or $cookie_auth_file_group_readable != '') {
- notice('You set a tor cookie authentication option, but do not have cookie_authentication on')
- }
+ if $cookie_authentication == 0
+ and ($cookie_auth_file != '' or $cookie_auth_file_group_readable != '') {
+ notice('You set a tor cookie authentication option, but do not have cookie_authentication on') # lint:ignore:80chars
+ }
concat::fragment { '04.control':
ensure => $ensure,
diff --git a/manifests/daemon/dns.pp b/manifests/daemon/dns.pp
index f3a7027..4677f24 100644
--- a/manifests/daemon/dns.pp
+++ b/manifests/daemon/dns.pp
@@ -10,7 +10,7 @@ define tor::daemon::dns(
owner => 'debian-tor',
group => 'debian-tor',
mode => '0644',
- order => 08,
+ order => '08',
target => $tor::daemon::config_file,
}
}
diff --git a/manifests/daemon/map_address.pp b/manifests/daemon/map_address.pp
index cfbd3da..270eac2 100644
--- a/manifests/daemon/map_address.pp
+++ b/manifests/daemon/map_address.pp
@@ -10,7 +10,7 @@ define tor::daemon::map_address(
owner => 'debian-tor',
group => 'debian-tor',
mode => '0644',
- order => 08,
+ order => '08',
target => $tor::daemon::config_file,
}
}
diff --git a/manifests/daemon/transparent.pp b/manifests/daemon/transparent.pp
index 74fed4f..65d744f 100644
--- a/manifests/daemon/transparent.pp
+++ b/manifests/daemon/transparent.pp
@@ -10,7 +10,7 @@ define tor::daemon::transparent(
owner => 'debian-tor',
group => 'debian-tor',
mode => '0644',
- order => 09,
+ order => '09',
target => $tor::daemon::config_file,
}
}