ability to add unmanaged hosts but still register dhcp and dns entries for them
We would like to register in foreman/katello any device with an ip in our network. We would like to automate with foreman the addition/deletion of dhcp and dns entries and use the foreman db as network inventory. We would like to register not only servers but also switches, routers, ups devices...etc
Adding new servers to foreman and registering the proper dhcp and dns entries for them works perfect but when we try to add e.g. a network switch we have noticed that it’s mandatory to define a “lifecycle environment”, “content view”, “os”, “media”, “partition table” and other fields which don't make sense for a device where we only want to register dhcp and dns entries.
We tried to add those hosts as "unmanaged" using hammer but then the dhcp and dns entries are not created.
As workaround I plan to create “fake groups” named “network devices”, “ups devices” and so on with faked "content view", OS, partition table etc but this approach doesn't seem too elegant and will "pollute" the statistics from foreman in the "monitor" menu.
It would be really cool if we could add new hosts which are managed only at the network level. The first idea I had was that the we could do something like "managed=only_network" . Does it make sense?
We are using foreman 1.16 with katello 3.5. I have also posted this in the community forums [[https://community.theforeman.org/t/is-it-possible-to-add-a-host-without-lifecycle-environment-content-view-and-os-i-would-like-to-register-dhcp-and-dns-entries-only/8114]]
#1 Updated by Pablo Escobar about 1 month ago
is there any chance that this feature request is taken into account? Some others asked for it: