module-tinc/templates/tinc.conf.erb
mh f55cfe6187 update tinc module to new stuff
* proper scoped var lookup
* use file_line instead of line
* use hiera instead of global $use_shorewall
* cleanup template
2012-02-09 16:13:23 +01:00

12 lines
No EOL
299 B
Text

Name = <%= fqdn_tinc %>
AddressFamily = ipv4
Device = /dev/net/tun
#PMTU = 1440
Mode = switch
#Mode = router
BindToInterface = <%= tinc_interface.to_s %>
<% tinc_hosts.to_a.reject{|h| h.to_s == scope.lookupvar('::fqdn') }.each do |connect_to_host| -%>
ConnectTo = <%= connect_to_host %>
<% end -%>