Hi, I've setup a prototype environment using Virtualbox with Nat Network. 
 The Foreman VM is CentOS 7.3, I've installed foreman 1.15.0 with puppet 
4.10, so I can play with Hiera 5.

Anyway, my installer command line is this:

foreman-installer --foreman-proxy-dhcp=true --foreman-proxy-dhcp-gateway=
'192.168.2.1' --foreman-proxy-dhcp-managed=true \
--foreman-proxy-dhcp-nameservers='192.168.2.10' --foreman-proxy-dhcp-option-
domain='demo.local' \
--foreman-proxy-dhcp-pxeserver='192.168.2.10' 
--foreman-proxy-dhcp-range='192.168.2.20 
192.168.2.50' \
--foreman-proxy-dhcp-search-domains='demo.local' --foreman-proxy-dhcp-server
='192.168.2.10' --foreman-proxy-dns=true \
--foreman-proxy-dns-forwarders=8.8.8.8 --foreman-proxy-dns-forwarders=8.8.
4.4 --foreman-proxy-dns-managed=true \
--foreman-proxy-dns-reverse='2.168.192.in-addr.arpa' --foreman-proxy-dns-
server='192.168.2.10' \
--foreman-proxy-dns-ttl='360' --foreman-proxy-dns-zone='demo.local' --
foreman-unattended=true --foreman-use-vhost=true \
--foreman-proxy-dhcp-provider='isc'--foreman-proxy-dns-provider='nsupdate' 
--foreman-proxy-puppet=true \
--foreman-proxy-tftp=true --foreman-proxy-tftp-managed=true --puppet-agent=
true --puppet-autosign-entries='*.demo.local' \
--puppet-server=true --puppet-server-ca=true --enable-foreman --enable-
foreman-proxy --enable-puppet

The installer throws an error when trying to start the dhcpd service...

May 31 09:47:25 foreman.demo.local dhcpd[5726]: bad range, address 
192.168.2.20 not in subnet 192.168.2.10 netmask 255.255.255.255
May 31 09:47:25 foreman.demo.local systemd[1]: dhcpd.service: main process 
exited, code=exited, status=1/FAILURE

Basically, the installer isn't defining the dhcp subnet correctly and 
here's what the subnet in dhcpd.conf looks like:

# demo.local
subnet 192.168.2.10 netmask 255.255.255.255 {
  pool
  {
    range 192.168.2.20 192.168.2.50;
  }


  option subnet-mask 255.255.255.255;
  option routers 192.168.2.1;
  option domain-search "demo.local";
}

Any idea why the installer is defining the subnet as a single ip address?

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-users+unsubscr...@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to