particleKIT / hostlist

Scripts to manage hostlists for dns/dhcp/ansible/...
GNU General Public License v3.0
2 stars 0 forks source link

exclude blocked ranges from push to dnsvs #10

Closed alexanha closed 7 years ago

alexanha commented 7 years ago

Introduce a conifg, e.g. dnsvs_exclude_range which is not managed by this tool. Reason: some addresses may e.g. refer to externally managed switches.

robinro commented 7 years ago

This is currently done via the ipranges external and internal.

What about having a group dnsvs to which one can add/remove hosts? This would fit nicer to the recent changes to use groups for everything (ansible, munin, known_hosts, ...).

alexanha commented 7 years ago

Hm, that means when adding, only existing computers in this group are synced, and upon removal only those which were in this group are removed? How to decide the latter?

robinro commented 7 years ago

Our sync is one-way anyhow: We generate a local list of hosts that should be synced and then on the remote remove all hosts that are not there locally and add all hosts that are missing. We only need to adjust the list of hosts we generated locally to affect this behaviour.

robinro commented 7 years ago

This was fixed by importing the single entry that was affected in our list.