I haven't had a chance to experiment with it yet, but can I source a variable from the tor startup script, let's say the IPv6 address of an instance, and define that within torrc as follows
ORPort [$Instance_IPv6_ADDR]:443
I'm sure if it's possible it would of already been done. I just wanted to see if there was an easy fix for simplifying templates for end users.
the torrc has no template support AFAIK - you would have to use a configuration management for that, but maybe the torrc %include functionality is somewhat useful for you