Dhcpd.conf and Subnets=> Subnet not found

Hi guys,

Is it still needed to have all subnets you provision from Foreman into your
dhcpd.conf ?

There are various stories around about this and the docs are not clear
about it.

I thought you only needed the subnet fro the dhcp host in it so dhcpd is
able to start and foreman puhhes just to the leasesfile using omapi, but it
fails on "Subnet not Found".

What is the correct way now ?

Cheers,

Matt

Every single subnet you create in Foreman needs to be manually created
in dhcpd.conf. I recommend to turn off DHCP management in the
installer (puppet) so it won't overwrite your manually modified
configuration the next time you run it (upgrade).

LZ

··· On Thu, Apr 6, 2017 at 12:27 AM, Matt wrote: > Hi guys, > > Is it still needed to have all subnets you provision from Foreman into your > dhcpd.conf ? > > There are various stories around about this and the docs are not clear about > it. > > I thought you only needed the subnet fro the dhcp host in it so dhcpd is > able to start and foreman puhhes just to the leasesfile using omapi, but it > fails on "Subnet not Found". > > What is the correct way now ? > > Cheers, > > Matt > > -- > 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+unsubscribe@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.


Later,
Lukas @lzap Zapletal

Hi Lukas,

Thanks for the update, I can simply move back to the non-managed version…

What does the managed version add as value ? Is this for basic setup as the
doesn't do anything positive to the DHCP settings for other subnets in
forman.

I think this should be more clear in the puppet foreman_proxy module.

Thanks,

Matt

··· Op donderdag 6 april 2017 13:32:16 UTC+2 schreef Lukas Zapletal: > > Every single subnet you create in Foreman needs to be manually created > in dhcpd.conf. I recommend to turn off DHCP management in the > installer (puppet) so it won't overwrite your manually modified > configuration the next time you run it (upgrade). > > LZ > > On Thu, Apr 6, 2017 at 12:27 AM, Matt <yamaka...@gmail.com > > wrote: > > Hi guys, > > > > Is it still needed to have all subnets you provision from Foreman into > your > > dhcpd.conf ? > > > > There are various stories around about this and the docs are not clear > about > > it. > > > > I thought you only needed the subnet fro the dhcp host in it so dhcpd is > > able to start and foreman puhhes just to the leasesfile using omapi, but > it > > fails on "Subnet not Found". > > > > What is the correct way now ? > > > > Cheers, > > > > Matt > > > > -- > > 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-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Later, > Lukas @lzap Zapletal >

Adding multiple subnets support in our puppet module is long term goal
and highly requested feature, feel free to help in this area.

LZ

··· On Fri, Apr 7, 2017 at 12:27 AM, Matt wrote: > Hi Lukas, > > Thanks for the update, I can simply move back to the non-managed version.. > > What does the managed version add as value ? Is this for basic setup as the > doesn't do anything positive to the DHCP settings for other subnets in > forman. > > I think this should be more clear in the puppet foreman_proxy module. > > Thanks, > > Matt > > Op donderdag 6 april 2017 13:32:16 UTC+2 schreef Lukas Zapletal: >> >> Every single subnet you create in Foreman needs to be manually created >> in dhcpd.conf. I recommend to turn off DHCP management in the >> installer (puppet) so it won't overwrite your manually modified >> configuration the next time you run it (upgrade). >> >> LZ >> >> On Thu, Apr 6, 2017 at 12:27 AM, Matt wrote: >> > Hi guys, >> > >> > Is it still needed to have all subnets you provision from Foreman into >> > your >> > dhcpd.conf ? >> > >> > There are various stories around about this and the docs are not clear >> > about >> > it. >> > >> > I thought you only needed the subnet fro the dhcp host in it so dhcpd is >> > able to start and foreman puhhes just to the leasesfile using omapi, but >> > it >> > fails on "Subnet not Found". >> > >> > What is the correct way now ? >> > >> > Cheers, >> > >> > Matt >> > >> > -- >> > 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-user...@googlegroups.com. >> > To post to this group, send email to forema...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Later, >> Lukas @lzap Zapletal > > -- > 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+unsubscribe@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.


Later,
Lukas @lzap Zapletal

Hi,

That seems to be an easy task if you ask me and I can and will do when I
can test it on some test env, for now I just need the manual DHCP managed
by puppet which I hoped to cntralized to one module but I need to switch
back to the dhcp one it seems.

I was thinking about some loop on the allowed subnets, will become
allright, I have seom idea about it.

Thanks for the update!

Cheers,

Matt

··· Op vrijdag 7 april 2017 10:42:01 UTC+2 schreef Lukas Zapletal: > > Adding multiple subnets support in our puppet module is long term goal > and highly requested feature, feel free to help in this area. > > LZ > > On Fri, Apr 7, 2017 at 12:27 AM, Matt <yamaka...@gmail.com > > wrote: > > Hi Lukas, > > > > Thanks for the update, I can simply move back to the non-managed > version.. > > > > What does the managed version add as value ? Is this for basic setup as > the > > doesn't do anything positive to the DHCP settings for other subnets in > > forman. > > > > I think this should be more clear in the puppet foreman_proxy module. > > > > Thanks, > > > > Matt > > > > Op donderdag 6 april 2017 13:32:16 UTC+2 schreef Lukas Zapletal: > >> > >> Every single subnet you create in Foreman needs to be manually created > >> in dhcpd.conf. I recommend to turn off DHCP management in the > >> installer (puppet) so it won't overwrite your manually modified > >> configuration the next time you run it (upgrade). > >> > >> LZ > >> > >> On Thu, Apr 6, 2017 at 12:27 AM, Matt wrote: > >> > Hi guys, > >> > > >> > Is it still needed to have all subnets you provision from Foreman > into > >> > your > >> > dhcpd.conf ? > >> > > >> > There are various stories around about this and the docs are not > clear > >> > about > >> > it. > >> > > >> > I thought you only needed the subnet fro the dhcp host in it so dhcpd > is > >> > able to start and foreman puhhes just to the leasesfile using omapi, > but > >> > it > >> > fails on "Subnet not Found". > >> > > >> > What is the correct way now ? > >> > > >> > Cheers, > >> > > >> > Matt > >> > > >> > -- > >> > 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-user...@googlegroups.com. > >> > To post to this group, send email to forema...@googlegroups.com. > >> > Visit this group at https://groups.google.com/group/foreman-users. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> > >> > >> -- > >> Later, > >> Lukas @lzap Zapletal > > > > -- > > 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-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > > > -- > Later, > Lukas @lzap Zapletal >

Looks like I misinformed you, the puppet module does support multiple subnets:

https://forge.puppet.com/theforeman/dhcp

I think the limitation is the installer? Someone help me, I am not sure.

LZ

··· On Fri, Apr 7, 2017 at 12:05 PM, Matt wrote: > Hi, > > That seems to be an easy task if you ask me and I can and will do when I can > test it on some test env, for now I just need the manual DHCP managed by > puppet which I hoped to cntralized to one module but I need to switch back > to the dhcp one it seems. > > I was thinking about some loop on the allowed subnets, will become allright, > I have seom idea about it. > > Thanks for the update! > > Cheers, > > Matt > > Op vrijdag 7 april 2017 10:42:01 UTC+2 schreef Lukas Zapletal: >> >> Adding multiple subnets support in our puppet module is long term goal >> and highly requested feature, feel free to help in this area. >> >> LZ >> >> On Fri, Apr 7, 2017 at 12:27 AM, Matt wrote: >> > Hi Lukas, >> > >> > Thanks for the update, I can simply move back to the non-managed >> > version.. >> > >> > What does the managed version add as value ? Is this for basic setup as >> > the >> > doesn't do anything positive to the DHCP settings for other subnets in >> > forman. >> > >> > I think this should be more clear in the puppet foreman_proxy module. >> > >> > Thanks, >> > >> > Matt >> > >> > Op donderdag 6 april 2017 13:32:16 UTC+2 schreef Lukas Zapletal: >> >> >> >> Every single subnet you create in Foreman needs to be manually created >> >> in dhcpd.conf. I recommend to turn off DHCP management in the >> >> installer (puppet) so it won't overwrite your manually modified >> >> configuration the next time you run it (upgrade). >> >> >> >> LZ >> >> >> >> On Thu, Apr 6, 2017 at 12:27 AM, Matt wrote: >> >> > Hi guys, >> >> > >> >> > Is it still needed to have all subnets you provision from Foreman >> >> > into >> >> > your >> >> > dhcpd.conf ? >> >> > >> >> > There are various stories around about this and the docs are not >> >> > clear >> >> > about >> >> > it. >> >> > >> >> > I thought you only needed the subnet fro the dhcp host in it so dhcpd >> >> > is >> >> > able to start and foreman puhhes just to the leasesfile using omapi, >> >> > but >> >> > it >> >> > fails on "Subnet not Found". >> >> > >> >> > What is the correct way now ? >> >> > >> >> > Cheers, >> >> > >> >> > Matt >> >> > >> >> > -- >> >> > 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-user...@googlegroups.com. >> >> > To post to this group, send email to forema...@googlegroups.com. >> >> > Visit this group at https://groups.google.com/group/foreman-users. >> >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> >> >> >> >> -- >> >> Later, >> >> Lukas @lzap Zapletal >> > >> > -- >> > 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-user...@googlegroups.com. >> > To post to this group, send email to forema...@googlegroups.com. >> > Visit this group at https://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Later, >> Lukas @lzap Zapletal


Later,
Lukas @lzap Zapletal

HI Lukas,

The dhcp module does, but when you set the puppet-foreman_proxy module
to dhcp_managed true then it doesn't. It seems you need to set that on
false and configure using the dhcp module.

I wonder what dhcp_managed to in the forman_proxy module actually does
compared to the dhcp module.

Cheers,

Matt

··· Op vrijdag 7 april 2017 14:26:30 UTC+2 schreef Lukas Zapletal: > > Looks like I misinformed you, the puppet module does support multiple > subnets: > > https://forge.puppet.com/theforeman/dhcp > > I think the limitation is the installer? Someone help me, I am not sure. > > LZ > > On Fri, Apr 7, 2017 at 12:05 PM, Matt <yamaka...@gmail.com > > wrote: > > Hi, > > > > That seems to be an easy task if you ask me and I can and will do when I > can > > test it on some test env, for now I just need the manual DHCP managed by > > puppet which I hoped to cntralized to one module but I need to switch > back > > to the dhcp one it seems. > > > > I was thinking about some loop on the allowed subnets, will become > allright, > > I have seom idea about it. > > > > Thanks for the update! > > > > Cheers, > > > > Matt > > > > Op vrijdag 7 april 2017 10:42:01 UTC+2 schreef Lukas Zapletal: > >> > >> Adding multiple subnets support in our puppet module is long term goal > >> and highly requested feature, feel free to help in this area. > >> > >> LZ > >> > >> On Fri, Apr 7, 2017 at 12:27 AM, Matt wrote: > >> > Hi Lukas, > >> > > >> > Thanks for the update, I can simply move back to the non-managed > >> > version.. > >> > > >> > What does the managed version add as value ? Is this for basic setup > as > >> > the > >> > doesn't do anything positive to the DHCP settings for other subnets > in > >> > forman. > >> > > >> > I think this should be more clear in the puppet foreman_proxy module. > >> > > >> > Thanks, > >> > > >> > Matt > >> > > >> > Op donderdag 6 april 2017 13:32:16 UTC+2 schreef Lukas Zapletal: > >> >> > >> >> Every single subnet you create in Foreman needs to be manually > created > >> >> in dhcpd.conf. I recommend to turn off DHCP management in the > >> >> installer (puppet) so it won't overwrite your manually modified > >> >> configuration the next time you run it (upgrade). > >> >> > >> >> LZ > >> >> > >> >> On Thu, Apr 6, 2017 at 12:27 AM, Matt wrote: > >> >> > Hi guys, > >> >> > > >> >> > Is it still needed to have all subnets you provision from Foreman > >> >> > into > >> >> > your > >> >> > dhcpd.conf ? > >> >> > > >> >> > There are various stories around about this and the docs are not > >> >> > clear > >> >> > about > >> >> > it. > >> >> > > >> >> > I thought you only needed the subnet fro the dhcp host in it so > dhcpd > >> >> > is > >> >> > able to start and foreman puhhes just to the leasesfile using > omapi, > >> >> > but > >> >> > it > >> >> > fails on "Subnet not Found". > >> >> > > >> >> > What is the correct way now ? > >> >> > > >> >> > Cheers, > >> >> > > >> >> > Matt > >> >> > > >> >> > -- > >> >> > 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-user...@googlegroups.com. > >> >> > To post to this group, send email to forema...@googlegroups.com. > >> >> > Visit this group at https://groups.google.com/group/foreman-users. > > >> >> > For more options, visit https://groups.google.com/d/optout. > >> >> > >> >> > >> >> > >> >> -- > >> >> Later, > >> >> Lukas @lzap Zapletal > >> > > >> > -- > >> > 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-user...@googlegroups.com. > >> > To post to this group, send email to forema...@googlegroups.com. > >> > Visit this group at https://groups.google.com/group/foreman-users. > >> > For more options, visit https://groups.google.com/d/optout. > >> > >> > >> > >> -- > >> Later, > >> Lukas @lzap Zapletal > > > > -- > Later, > Lukas @lzap Zapletal >