On 05/23/2010 10:08 AM, andreash wrote: > Hi, > > I think the idea with the static DHCP leases is a good one :) But even > then, wouldn't I want to set the DHCP config via puppet, so I would > need to define all the IPs inside puppet? > > Cheers, > > Andreas. > > On 23 Mai, 15:50, Joe McDonagh <joseph.e.mcdon...@gmail.com> wrote: >> On 05/22/2010 04:59 PM, andreash wrote: >> >>> Hi, >> >>> thanks for your input. I had already thought about that, but initially >>> wanted to be able to set the ip addresses using puppet. Or is that a >>> bad idea? >> >> Hi, you should probably use DHCP static leases, but in situations where >> you can't, it is possible to create a define that uses an ERB template >> so you can config network interfaces from inside puppet. I do this right >> now with Ubuntu, though I think it would be even easier on RHEL/CentOS. >> >> -- >> Joe McDonagh >> AIM: YoosingYoonickz >> IRC: joe-mac on freenode >> L'ennui est contre-révolutionnaire >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Puppet Users" group. >> To post to this group, send email to puppet-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscr...@googlegroups.com. >> For more options, visit this group >> athttp://groups.google.com/group/puppet-users?hl=en. > Yes, you keep the dhcpd.conf in puppet and serve it out via source or as a template via content in a file resource, then notify a dhcpd service definition. The dhcpd.conf is pretty much part of the bootstrap phase, so I don't think you'd want to rely on a stored config export/collect setup to build the file.
-- Joe McDonagh AIM: YoosingYoonickz IRC: joe-mac on freenode L'ennui est contre-révolutionnaire -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.