On Wed, Oct 17, 2012 at 3:13 PM, GordonJB <g.bonth...@gmail.com> 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 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.

Reply via email to