PingableIpamPlugin
This IPAM mode extends the defaul Random DB adding one extra step before suggesting IP: ping that address and if it is pingable it will not be suggested.
To prevent human error when the host is created without assigned subnet the plugin adds a new validation rule: the subnet must be selected.
Installation
See How_to_Install_a_Plugin for how to install Foreman plugins.
Gem is published on rubygems.org.
Usage
Just select a new IPAM type called "Random DB with ping" in the same way as usual.
Contributing
Fork and send a Pull Request. Thanks!
Copyright
Copyright (c) 2020 Pavel Parshin
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.