aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-25 14:21:23 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-25 14:21:23 -0200
commitb9ee67f70b589a2d6bd174cf254e9042288d9ccd (patch)
treeaaf63a5c7631f625c88debc2069a567584a4a164 /templates
parent20645332c66e39d59770de3c0abb6dd18eb690b1 (diff)
downloadpuppet-tor-b9ee67f70b589a2d6bd174cf254e9042288d9ccd.tar.gz
puppet-tor-b9ee67f70b589a2d6bd174cf254e9042288d9ccd.tar.bz2
Fixing scope lookup at global template
Diffstat (limited to 'templates')
-rw-r--r--templates/torrc.global.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/torrc.global.erb b/templates/torrc.global.erb
index 3a3b623..f44eea5 100644
--- a/templates/torrc.global.erb
+++ b/templates/torrc.global.erb
@@ -3,13 +3,13 @@ RunAsDaemon 1
DataDirectory <%= data_dir %>
# log
-<%- if log_rules != [] then -%>
-<%- for log_rule in log_rules -%>
+<%- if scope.lookupvar('tor::daemon::log_rules') != [] then -%>
+<%- for scope.lookupvar('tor::daemon::log_rule') in log_rules -%>
Log <%= log_rule %>
<%- end -%>
<%- else -%>
Log notice syslog
<%- end -%>
-AutomapHostsOnResolve <%= automap_hosts_on_resolve%>
-UseBridges <%= use_bridges%>
+AutomapHostsOnResolve <%= scope.lookupvar('tor::daemon::automap_hosts_on_resolve') %>
+UseBridges <%= scope.lookupvar('tor::daemon::use_bridges') %>