-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help - how to customize template tinc-up.j2? #40
Comments
Funnily enough, this is what the Instead, perhaps you could introduce new parameters, In extra_routes: [ 'list', 'of', 'route', 'commands' ]
tinc__networks:
'mesh0':
tinc_up_options: '{{ extra_routes }}' Just a mockup, not sure if it works. I see a problem with this right now since Perhaps another alternative would be to add something akin to an "include", since the I think that would be a much more elegant solution... Do you want to try it? If so, work on |
thank you a lot for the awesome reply and, wow, the I like a lot the second solution with hooks which I'd love to try and experiment. I need to find some time for it though. For now, as quick fix, I've used a per-host playbook that I run this way:
Basically in the playbook I simply manipulate the |
No, |
I see the issue but, to be clear, be aware that I wasn't complaining at all. I was just wondering. Debops is just AWESOME. Period. |
Of couse, I know. And thanks. :-) |
I need to force a couple of routes in
tinc-up.j2
for just one specific host but I don't get how to do it.I realize that this is probably more "lack of understanding of the whole debops structure" than "a debops.tinc issue". I apologize for this.
However, I see in main.yml
I suppose that I can put
tinc-up.j2
in some prioritized subdir in my ansible tree but I don't get where and with which structure so that my custom template will apply to just one machine.The text was updated successfully, but these errors were encountered: