Using the include support for deduplication #500
hrzlgnm
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've discovered a great way on how to de duplicate my configuration using includes. Even though the documentation does not say anything about the functionality of
include
, it's still supported.I'm using the following approach to setup how to retrieve ipv6/ipv4 addresses and share secrets between providers:
To give you an example:
Here we define on how to retrieve the ipv6 address to be used once for all providers
/etc/inadyn/conf.d/get_ipv6_address.conf
/etc/inadyn/conf.d/get_ipv4_address.conf
/etc/inadyn/secrets/dynv6_secrets.conf
/etc/inadyn/secrets/duckdns_secrets.conf
/etc/inadyn/secrets/ipv64_secrets.conf
Putting everything together in the main config:
/etc/inadyn.conf
With this approach I only have to change in one location whenever those change. Or whenever I may decide to replace my router, I only need to change that in one location.
Beta Was this translation helpful? Give feedback.
All reactions