summaryrefslogtreecommitdiff
path: root/puppet/modules/tor/templates/torrc.control.erb
blob: 0b68faff519390976789359500c0b2a58b06f32e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# tor controller
<%  if @port != '0' -%>
ControlPort <%= @port %>
<%    if @cookie_authentication != '0' -%>
CookieAuthentication 1
<%      if @cookie_auth_file != '' -%>
CookieAuthFile <%= @cookie_auth_file %>
<%      end -%>
<%      if @cookie_auth_file_group_readable != '' -%>
CookieAuthFileGroupReadable <%= @cookie_auth_file_group_readable %>
<%      end -%>
<%    else -%>
HashedControlPassword <%= @hashed_control_password %>
<%    end -%>
<%  end -%>