On 12/21/2021 11:31 AM, Dan Mahoney wrote:
Hey there,
At the day job, our mynetworks list is like 20 items (v4 and v6) deep. We’re
converting all our configs to git and puppet management, so the ability to git
blame this stuff is useful.
Is there a way of putting it one-item-per-line that allows comments, like:
myetworks = 1.2.3.4, #corporate office
5.6.7.8, # remote office
[2001:1234:::dead:beef], #local office ipv6
Or would that break things?
Inline comments are not supported and will break things.
Alternatively, would
mynetworks = 1.2.3.4,
# and then the remote
5.6.7.8,
work?
Yes, you can add a comment by itself and continue the line by
starting real data with a space.
mynetworks =
# local host
192.168.2.12
# accounting
10.10.1.0/24
# production
10.1.0.0/16
-- Noel Jones