Hello everyone, I''m fairly new to the DevOps realm, and while I''ve written my fair share of bash loops and such, I figured it was time to learn something new. That being said, I''ve been working on automating the kickstart process (no cobbler yet). I''ve configured my Kickstart script (CentOS 6) to do the dirty work of installing the OS, configure local yum repo (%post), and then install puppet. What I would like to do is to set up a list of MAC addresses, along with the IP addresses a head of time, and then have puppet rewrite the networking configuration of the host based on MAC address after it has successfully signed the certificate and communicated with the client host. Possible? If so, any guidance, examples or tips on how to achieve this? Perhaps, more importantly, would this be the right approach? -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Nov 14, 2011 at 08:52, Will S. G. <will@arw.in> wrote:> Hello everyone, > > I''m fairly new to the DevOps realm, and while I''ve written my fair > share of bash loops and such, I figured it was time to learn something > new. That being said, I''ve been working on automating the kickstart > process (no cobbler yet). I''ve configured my Kickstart script (CentOS > 6) to do the dirty work of installing the OS, configure local yum > repo (%post), and then install puppet. > > What I would like to do is to set up a list of MAC addresses, along > with the IP addresses a head of time, and then have puppet rewrite the > networking configuration of the host based on MAC address after it has > successfully signed the certificate and communicated with the client > host. > > Possible? If so, any guidance, examples or tips on how to achieve > this? Perhaps, more importantly, would this be the right approach? > > While this can be done, I think using DHCP would be better here. DHCP canbe configured to serve "static" IP addresses based on the MAC address. You can then use puppet to maintain DHCP configuration. John -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
That makes sense, probably less code gymnastics too. I forgot to say that I did MAC address reservation in the past. I suppose I was thinking there was possibly a more efficient approach. Thanks for the quick reply, John. On Nov 14, 1:00 am, John Kennedy <skeb...@gmail.com> wrote:> On Mon, Nov 14, 2011 at 08:52, Will S. G. <w...@arw.in> wrote: > > > > > > > > > > > Hello everyone, > > > I''m fairly new to the DevOps realm, and while I''ve written my fair > > share of bash loops and such, I figured it was time to learn something > > new. That being said, I''ve been working on automating the kickstart > > process (no cobbler yet). I''ve configured my Kickstart script (CentOS > > 6) to do the dirty work of installing the OS, configure local yum > > repo (%post), and then install puppet. > > > What I would like to do is to set up a list of MAC addresses, along > > with the IP addresses a head of time, and then have puppet rewrite the > > networking configuration of the host based on MAC address after it has > > successfully signed the certificate and communicated with the client > > host. > > > Possible? If so, any guidance, examples or tips on how to achieve > > this? Perhaps, more importantly, would this be the right approach? > > > While this can be done, I think using DHCP would be better here. DHCP can > > be configured to serve "static" IP addresses based on the MAC address. You > can then use puppet to maintain DHCP configuration. > John-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Nov 14, 2011, at 4:01 AM, John Kennedy <skebi69@gmail.com> wrote: On Mon, Nov 14, 2011 at 08:52, Will S. G. <will@arw.in> wrote:> > > What I would like to do is to set up a list of MAC addresses, along > with the IP addresses a head of time, and then have puppet rewrite the > networking configuration of the host based on MAC address after it has > successfully signed the certificate and communicated with the client > host. > > Possible? If so, any guidance, examples or tips on how to achieve > this? Perhaps, more importantly, would this be the right approach? > > While this can be done, I think using DHCP would be better here. DHCP canbe configured to serve "static" IP addresses based on the MAC address. You can then use puppet to maintain DHCP configuration. I''m eyeing a similar configuration. In our network, we don''t control the network, only the Linux servers, so configuring DHCP isn''t really an option. I''d like to see how others are tackling this in similarly restricted environments. Cheers, Scott -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Nov 14, 2011 at 10:52 AM, Will S. G. <will@arw.in> wrote:> Hello everyone, > > I''m fairly new to the DevOps realm, and while I''ve written my fair > share of bash loops and such, I figured it was time to learn something > new. That being said, I''ve been working on automating the kickstart > process (no cobbler yet). I''ve configured my Kickstart script (CentOS > 6) to do the dirty work of installing the OS, configure local yum > repo (%post), and then install puppet. > > What I would like to do is to set up a list of MAC addresses, along > with the IP addresses a head of time, and then have puppet rewrite the > networking configuration of the host based on MAC address after it has > successfully signed the certificate and communicated with the client > host. > > Possible? If so, any guidance, examples or tips on how to achieve > this? Perhaps, more importantly, would this be the right approach?or you can simply use foreman [1], you can see a screencast here [2] [1] http://theforeman.org [2] http://www.youtube.com/watch?v=vqmsaQbY5Jw Ohad> > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mon, Nov 14, 2011 at 1:52 PM, Scott Merrill <skippy@skippy.net> wrote:> > > On Nov 14, 2011, at 4:01 AM, John Kennedy <skebi69@gmail.com> wrote: > > > > On Mon, Nov 14, 2011 at 08:52, Will S. G. <will@arw.in> wrote: >> >> What I would like to do is to set up a list of MAC addresses, along >> with the IP addresses a head of time, and then have puppet rewrite the >> networking configuration of the host based on MAC address after it has >> successfully signed the certificate and communicated with the client >> host. >> >> Possible? If so, any guidance, examples or tips on how to achieve >> this? Perhaps, more importantly, would this be the right approach? >> > While this can be done, I think using DHCP would be better here. DHCP can be > configured to serve "static" IP addresses based on the MAC address. You can > then use puppet to maintain DHCP configuration. > > I''m eyeing a similar configuration. In our network, we don''t control the > network, only the Linux servers, so configuring DHCP isn''t really an > option. > I''d like to see how others are tackling this in similarly restricted > environments.Using gpxe? Ohad> Cheers, > Scott > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.