Hi there,
We provision VMs and physical hosts using Foreman. Currently, we are using
Foreman 1.8.3.
All of our physical hosts use IPMI and BMCs. We manage the the mapping of
BMCs to physical hosts by hand, and we'd like to do this programatically.
When Foreman provisions a physical host, Foreman will add the IP address
and hostname to the DNS proxy. Could we also assign an IP address and a
hostname for the BMC automatically at the same time?
For example, if I have the following hosts, I'd like to have a
corresponding hostname for the BMC in in the DNS server.
Host name & IP BMC name
···
=========================================================
web1, 192.168.1.100 web1-bmc, 172.16.1.32
web2, 192.168.1.101 web2-bmc, 172.16.1.33
db1, 192.168.1.200 db1-bmc, 172.16.1.34
db1, 192.168.1.201 db2-bmc, 172.16.135
Thank you,
-= Stefan
Well assuming your using puppet you can use my custom bmc type which uses
openipmi instead of a rubyipmi or a smart proxy to set info. Which you
could then populate the variables with foreman parameters or create some
other mechanism within puppet to auto guess the ip. (Maybe a dns resolution
function?).
https://github.com/logicminds/bmclib
bmc { '78:e7:d1:7d:20:cc':
ensure => 'present',
gateway => '192.168.1.1',
ip => resolve_dns_name('web1-bmc'),
ipsource => 'static',
netmask => '255.255.255.0',
vlanid => 'off',
require => Class['bmclib']
}
Note:please use master branch or wait for version 0.2.0 to be released.
All other versions didn't work 100%.
Corey
···
On Thursday, September 3, 2015 at 11:14:33 AM UTC-7, Stefan Lasiewski wrote:
>
> Hi there,
>
> We provision VMs and physical hosts using Foreman. Currently, we are using
> Foreman 1.8.3.
>
> All of our physical hosts use IPMI and BMCs. We manage the the mapping of
> BMCs to physical hosts by hand, and we'd like to do this programatically.
>
> When Foreman provisions a physical host, Foreman will add the IP address
> and hostname to the DNS proxy. Could we also assign an IP address and a
> hostname for the BMC automatically at the same time?
>
> For example, if I have the following hosts, I'd like to have a
> corresponding hostname for the BMC in in the DNS server.
>
>
> Host name & IP BMC name
> =========================================================
> web1, 192.168.1.100 web1-bmc, 172.16.1.32
> web2, 192.168.1.101 web2-bmc, 172.16.1.33
> db1, 192.168.1.200 db1-bmc, 172.16.1.34
> db1, 192.168.1.201 db2-bmc, 172.16.135
>
> Thank you,
>
> -= Stefan
>
If you add a new BMC interface with IP and name under the Interfaces tab
of the New Host form, and ensure "Managed" is ticked, then Foreman will
set up DNS and DHCP if configured for that domain/subnet.
···
On 03/09/15 19:14, Stefan Lasiewski wrote:
> Hi there,
>
> We provision VMs and physical hosts using Foreman. Currently, we are
> using Foreman 1.8.3.
>
> All of our physical hosts use IPMI and BMCs. We manage the the mapping
> of BMCs to physical hosts by hand, and we'd like to do this programatically.
>
> When Foreman provisions a physical host, Foreman will add the IP address
> and hostname to the DNS proxy. Could we also assign an IP address and a
> hostname for the BMC automatically at the same time?
>
> For example, if I have the following hosts, I'd like to have a
> corresponding hostname for the BMC in in the DNS server.
–
Dominic Cleal
dominic@cleal.org