Open tomduijf opened 7 years ago
I am in the process of adding testing to dhcpd-formula. Next I would like to incorporate your changes and add IPv6 support.
Hi @mthibaut
Sounds great! I'd be happy to help with testing/reviewing if you want.
Mind passing a little credit back my when submitting? (took me quite some effort)
Hi all,
I imagine rewrites of existing formulas are not taken lightly, and they shouldn't. There were many great idea's taken from the current formula, which will still work. Some things did change that makes this PR not backward compatible with current pillar.
This is an initial PR, i'd very much like some feedback on if we want this at all, and possible improvements. See todo below.
So, what does this bring? Some of these items are also present in the current version.
option domain-name-servers
allow
,deny
,set
, `match, etc are repeated when values are in list formprimary
, are not printed forsecondary
roleIncompatibility with the current formula:
option <something>
statements require to be set underoptions:
dictcustomized_options
->custom_options
Todo:
Probably forgot to mention several things.
This was quite a bit of work, especially the jinja code, getting to the eventual imports / macro combination as a solution for dealing with the blocks, custom option tracking, and passing configuration. Hope you like!