Environment variables in tinc.conf?

Guus Sliepen guus at tinc-vpn.org
Sat May 11 13:17:50 CEST 2013


On Sat, May 11, 2013 at 01:00:17PM +0200, Rene Bartsch wrote:

> even with only five nodes one looses track of changed configs and host
> files after adding/removing a node or changing the config (e.g. ConnectTo).
> It would be great if one can just copy a default tinc.conf to all nodes.
> Show-stoppers are the ConnectTo- and Name-options. ConnectTo is be replaced
> by Autoconnect, but one still needs to set the Name of a node. Using
> environment variables in tinc.conf like $HOSTNAME would simplify matters.
> 
> Is it possible to use environment variables in tinc.conf? If not, this is a
> feature request to enable enviroment variables in tinc.conf or add a flag
> "HOST" to the Name option (Name = HOST) which resolves the hostname as node
> name.

Yes, with version 1.0.21 or 1.1pre7, you can use environment variables for the
Name option (but not for any other option).

http://www.tinc-vpn.org/documentation/tinc_4.html#index-Name

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130511/0d0e4840/attachment.pgp>


More information about the tinc mailing list