A little stumped here and looking for a nudge in the right direction.
I’m trying to configure a Discovery Rule to automatically provision a host, and give it a specific hostname and IP address that corresponds to a known fact, like its IPMI hostname or IP address. More details…
I’ve got about 60 bare-metal servers I’m currently trying to provision. They all have OOB management – in this case IPMI – configured on a static IP with corresponding DNS record. So when they’re discovered by foreman, they have facts like:
ipmi_ptr = company-server-001-ipmi.example.com
ipmi_ipaddress = 10.0.1.1
Is there a way to configure a discovery rule that will automatically provision these with a specific IP & hostname that corresponds to that IPMI hostname/IP?
For example, if a discovered host has the following IPMI hostname…
Then configure it with the following hostname & IP:
In other words, I’m looking for a way to upload a set of facts. Right now, I have a spreadsheet for all 60 servers that has Mac address, IPMI hostname, IPMI IP address, server hostname and server IP address for each system. In short, I’m just looking for a way to get all that information into Foreman so that I don’t have to provision each host one by one.
For what it’s worth, I’m a sysadmin, not a developer. I have no ruby skills and I’m pretty new to Foreman. Go gentle on me…