Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-26 Thread Johan De Wit
We are using LDAP as our ENC, which contains the  network interfaces as 
a subtree of the HOST tree.


The provisioning system (cobbler) uses ldap for the configuration of the 
installation files (autoyast/kisckstart).


Puppet will handle the re-configuration of the network.

I'm trying (getting on very slowly) to write and hiera ldap backend, 
because since  network config is in a subtree, those data is not 
available as global vars.


Just another method ...

Grts

johan



On 06/25/2013 09:33 PM, Worker Bee wrote:
Thanks, Ken.  It will be a secondary interface and it will 'hopefully' 
be a one-time fix.


I appreciate the feedback and will take a look at this!

Jerald; you are absolutely right, this should be a provisioning task 
but, we I have an OPS team who needs to make a one-tme correction on 
exisiting gear.  DHCP is not an option due to limitations in the 
environment.


Thanks again!

Bee


On Tue, Jun 25, 2013 at 3:27 PM, Ken Barber k...@puppetlabs.com 
mailto:k...@puppetlabs.com wrote:


This module from @finch can do networking configuration:
https://forge.puppetlabs.com/adrien/network ... the mac address of a
host/interface can be gleaned from facts.

Is this change going to occur on your primary interface though (the
one you are talking to your puppetmaster on), or is it for some kind
of secondary interface?

On Tue, Jun 25, 2013 at 8:05 PM, Worker Bee beeworke...@gmail.com
mailto:beeworke...@gmail.com wrote:
 I can think of several ways puppet can do this, I was just
wondering if the
 group might have any ideas/suggestions as to best approaches.
 Obviously, we
 are unable to use DHCP in this particular case, or we would.


 On Tue, Jun 25, 2013 at 2:30 PM, Dan White y...@comcast.net
mailto:y...@comcast.net wrote:

 You are describing DHCP reservations.
 That would be something to do with a DHCP server, not
necessarily with
 Puppet

 “Sometimes I think the surest sign that intelligent life exists
elsewhere
 in the universe is that none of it has tried to contact us.”
 Bill Waterson (Calvin  Hobbes)

 
 From: Worker Bee beeworke...@gmail.com
mailto:beeworke...@gmail.com
 To: puppet-users@googlegroups.com
mailto:puppet-users@googlegroups.com
 Sent: Tuesday, June 25, 2013 2:06:05 PM
 Subject: [Puppet Users] Dynamically assign Static IP Addresses


 Hi Everyone;

 I was wondering if anyone has created ot knows of a module that
can be
 used to assign static IP addresses to hosts post build.  The
addresses will
 be static but, need to be assigned based on MAC address.

 Essentially, we have a file with a list of hostnames/mac
addresses.  I
 need to use puppet to assign the correct IP addrsses to the
correct host.
 Stored Configs is not an option.

 I will be grateful for any advice/feedback!

 Thanks!
 Bee

 --
 You received this message because you are subscribed to the
Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from
it, send an
 email to puppet-users+unsubscr...@googlegroups.com
mailto:puppet-users%2bunsubscr...@googlegroups.com.
 To post to this group, send email to
puppet-users@googlegroups.com mailto:puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users.
 For more options, visit https://groups.google.com/groups/opt_out.



 --
 You received this message because you are subscribed to the
Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from
it, send an
 email to puppet-users+unsubscr...@googlegroups.com
mailto:puppet-users%2bunsubscr...@googlegroups.com.
 To post to this group, send email to
puppet-users@googlegroups.com mailto:puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users.
 For more options, visit https://groups.google.com/groups/opt_out.




 --
 You received this message because you are subscribed to the
Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from
it, send an
 email to puppet-users+unsubscr...@googlegroups.com
mailto:puppet-users%2bunsubscr...@googlegroups.com.
 To post to this group, send email to
puppet-users@googlegroups.com mailto:puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users.
 For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google
Groups Puppet Users group.
To unsubscribe from this group and stop receiving emails from it,
send an email to puppet-users+unsubscr

[Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Worker Bee
Hi Everyone;

I was wondering if anyone has created ot knows of a module that can be used
to assign static IP addresses to hosts post build.  The addresses will be
static but, need to be assigned based on MAC address.

Essentially, we have a file with a list of hostnames/mac addresses.  I need
to use puppet to assign the correct IP addrsses to the correct host.
Stored Configs is not an option.

I will be grateful for any advice/feedback!

Thanks!
Bee

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




Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Dan White
You are describing DHCP reservations . 
That would be something to do with a DHCP server, not necessarily with Puppet 


“Sometimes I think the surest sign that intelligent life exists elsewhere in 
the universe is that none of it has tried to contact us.” 
Bill Waterson (Calvin  Hobbes) 

- Original Message -
From: Worker Bee beeworke...@gmail.com 
To: puppet-users@googlegroups.com 
Sent: Tuesday, June 25, 2013 2:06:05 PM 
Subject: [Puppet Users] Dynamically assign Static IP Addresses 






Hi Everyone; 

I was wondering if anyone has created ot knows of a module that can be used to 
assign static IP addresses to hosts post build. The addresses will be static 
but, need to be assigned based on MAC address. 

Essentially, we have a file with a list of hostnames/mac addresses. I need to 
use puppet to assign the correct IP addrsses to the correct host. Stored 
Configs is not an option. 

I will be grateful for any advice/feedback! 

Thanks! 
Bee 


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


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




Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Worker Bee
Yes, but we will not be able to use DHCP in this case.  This is why I was
aksing if anyone had any suggesting for leveraging Puppet to do this


On Tue, Jun 25, 2013 at 2:30 PM, Dan White y...@comcast.net wrote:

 You are describing DHCP reservations.
 That would be something to do with a DHCP server, not necessarily with
 Puppet

 “Sometimes I think the surest sign that intelligent life exists elsewhere
 in the universe is that none of it has tried to contact us.”
 Bill Waterson (Calvin  Hobbes)

 --
 *From: *Worker Bee beeworke...@gmail.com
 *To: *puppet-users@googlegroups.com
 *Sent: *Tuesday, June 25, 2013 2:06:05 PM
 *Subject: *[Puppet Users] Dynamically assign Static IP Addresses


 Hi Everyone;

 I was wondering if anyone has created ot knows of a module that can be
 used to assign static IP addresses to hosts post build.  The addresses will
 be static but, need to be assigned based on MAC address.

 Essentially, we have a file with a list of hostnames/mac addresses.  I
 need to use puppet to assign the correct IP addrsses to the correct host.
 Stored Configs is not an option.

 I will be grateful for any advice/feedback!

 Thanks!
 Bee

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



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




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




Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Worker Bee
I can think of several ways puppet can do this, I was just wondering if the
group might have any ideas/suggestions as to best approaches.  Obviously,
we are unable to use DHCP in this particular case, or we would.


On Tue, Jun 25, 2013 at 2:30 PM, Dan White y...@comcast.net wrote:

 You are describing DHCP reservations.
 That would be something to do with a DHCP server, not necessarily with
 Puppet

 “Sometimes I think the surest sign that intelligent life exists elsewhere
 in the universe is that none of it has tried to contact us.”
 Bill Waterson (Calvin  Hobbes)

 --
 *From: *Worker Bee beeworke...@gmail.com
 *To: *puppet-users@googlegroups.com
 *Sent: *Tuesday, June 25, 2013 2:06:05 PM
 *Subject: *[Puppet Users] Dynamically assign Static IP Addresses


 Hi Everyone;

 I was wondering if anyone has created ot knows of a module that can be
 used to assign static IP addresses to hosts post build.  The addresses will
 be static but, need to be assigned based on MAC address.

 Essentially, we have a file with a list of hostnames/mac addresses.  I
 need to use puppet to assign the correct IP addrsses to the correct host.
 Stored Configs is not an option.

 I will be grateful for any advice/feedback!

 Thanks!
 Bee

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



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




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




Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Jerald Sheets
Wouldn't you want to do this on the provisioning side?


---
Jerald M. Sheets jr.



On Tue, Jun 25, 2013 at 3:04 PM, Worker Bee beeworke...@gmail.com wrote:

 Yes, but we will not be able to use DHCP in this case.  This is why I was
 aksing if anyone had any suggesting for leveraging Puppet to do this


 On Tue, Jun 25, 2013 at 2:30 PM, Dan White y...@comcast.net wrote:

 You are describing DHCP reservations.
 That would be something to do with a DHCP server, not necessarily with
 Puppet

 “Sometimes I think the surest sign that intelligent life exists elsewhere
 in the universe is that none of it has tried to contact us.”
 Bill Waterson (Calvin  Hobbes)

 --
 *From: *Worker Bee beeworke...@gmail.com
 *To: *puppet-users@googlegroups.com
 *Sent: *Tuesday, June 25, 2013 2:06:05 PM
 *Subject: *[Puppet Users] Dynamically assign Static IP Addresses


 Hi Everyone;

 I was wondering if anyone has created ot knows of a module that can be
 used to assign static IP addresses to hosts post build.  The addresses will
 be static but, need to be assigned based on MAC address.

 Essentially, we have a file with a list of hostnames/mac addresses.  I
 need to use puppet to assign the correct IP addrsses to the correct host.
 Stored Configs is not an option.

 I will be grateful for any advice/feedback!

 Thanks!
 Bee

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



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




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




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




Re: [Puppet Users] Dynamically assign Static IP Addresses

2013-06-25 Thread Worker Bee
Thanks, Ken.  It will be a secondary interface and it will 'hopefully' be a
one-time fix.

I appreciate the feedback and will take a look at this!

Jerald; you are absolutely right, this should be a provisioning task but,
we I have an OPS team who needs to make a one-tme correction on exisiting
gear.  DHCP is not an option due to limitations in the environment.

Thanks again!

Bee


On Tue, Jun 25, 2013 at 3:27 PM, Ken Barber k...@puppetlabs.com wrote:

 This module from @finch can do networking configuration:
 https://forge.puppetlabs.com/adrien/network ... the mac address of a
 host/interface can be gleaned from facts.

 Is this change going to occur on your primary interface though (the
 one you are talking to your puppetmaster on), or is it for some kind
 of secondary interface?

 On Tue, Jun 25, 2013 at 8:05 PM, Worker Bee beeworke...@gmail.com wrote:
  I can think of several ways puppet can do this, I was just wondering if
 the
  group might have any ideas/suggestions as to best approaches.
  Obviously, we
  are unable to use DHCP in this particular case, or we would.
 
 
  On Tue, Jun 25, 2013 at 2:30 PM, Dan White y...@comcast.net wrote:
 
  You are describing DHCP reservations.
  That would be something to do with a DHCP server, not necessarily with
  Puppet
 
  “Sometimes I think the surest sign that intelligent life exists
 elsewhere
  in the universe is that none of it has tried to contact us.”
  Bill Waterson (Calvin  Hobbes)
 
  
  From: Worker Bee beeworke...@gmail.com
  To: puppet-users@googlegroups.com
  Sent: Tuesday, June 25, 2013 2:06:05 PM
  Subject: [Puppet Users] Dynamically assign Static IP Addresses
 
 
  Hi Everyone;
 
  I was wondering if anyone has created ot knows of a module that can be
  used to assign static IP addresses to hosts post build.  The addresses
 will
  be static but, need to be assigned based on MAC address.
 
  Essentially, we have a file with a list of hostnames/mac addresses.  I
  need to use puppet to assign the correct IP addrsses to the correct
 host.
  Stored Configs is not an option.
 
  I will be grateful for any advice/feedback!
 
  Thanks!
  Bee
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send
 an
  email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
  --
  You received this message because you are subscribed to the Google Groups
  Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

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




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