So I take it that when the new VM announces itself to the network, it will go off to the DHCP server and pick a static IP if there is one defined already for it's MAC address in a config file somewhere? Is there a way to have a MAC address/IP pairing generated if one does not exist?
Thanks, Gordon On Wednesday, 17 October 2012 15:36:45 UTC+1, Matthew Burgess wrote: > > On Wed, Oct 17, 2012 at 3:13 PM, GordonJB <g.bon...@gmail.com<javascript:>> > wrote: > > I have a server which we're running a lot of VM's on, including a Puppet > > master and various nodes under puppet management. When we add new VM's > with > > VSphere, the new nodes have dynamic IP's. > > > > What we're looking to do is have each VM have a static IP and have these > > automatically assigned from a pool of addresses. I am looking in to > Puppet > > to do this (so i.e. when we add a new puppet node, it is given a static > IP > > address). Is this something that's possible? If so, how would I go about > it? > > I looked into Foreman, but honestly I could never quite figure out if it > was > > what I needed, or get it set up on a server. > > You could use Foreman, as it can manage DHCP for you, but if you're not > planning to use any of its other features, its probably a bit of an > overkill. > > All you need is a DHCP server, where you'd configure your range of static > IP addresses that you want your VMs to sit in, and presumably a list of > MAC address to IP address mappings. > > There are a number of modules on the puppet forge > (http://forge.puppetlabs.com/) concerning DHCP that you could either > make use of directly, or use as inspiration for your own. > > Regards, > > Matt. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/IYCi1DVhxe8J. To post to this group, send email to puppet-users@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.