Geoff
2010-Dec-03 11:41 UTC
[Puppet Users] Puppet updating from relative directories or chroot
Anyone had any experience getting puppet to update multiple OS''s on a single server? For example, for a set of blades Network booting from a primary server, the OS for each blade would be stored on the primary server. For example: /pxe/host1/<normal OS directory structure> /pxe/host2/<normal OS directory structure> ..... /pxe/hostn/<normal OS directory structure> Can puppet be run in a mode that would take into account relative directories. i.e. instead of being / (root) based, it would be /pxe/ hostn/ based? I''ve tried the chroot approach previously (about 2 years ago) but had a nightmare with Ruby libraries. Cheers, Geoff. -- 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.
Geoff
2010-Dec-13 12:02 UTC
[Puppet Users] Re: Puppet updating from relative directories or chroot
Bump! On Dec 3, 11:41 am, Geoff <geoffnew...@gmail.com> wrote:> Anyone had any experience getting puppet to update multiple OS''s on a > single server? > For example, for a set of blades Network booting from a primary > server, the OS for each blade would be stored on the primary server. > For example: > /pxe/host1/<normal OS directory structure> > /pxe/host2/<normal OS directory structure> > ..... > /pxe/hostn/<normal OS directory structure> > > Can puppet be run in a mode that would take into account relative > directories. i.e. instead of being / (root) based, it would be /pxe/ > hostn/ based? > I''ve tried the chroot approach previously (about 2 years ago) but had > a nightmare with Ruby libraries. > > Cheers, > > Geoff.-- 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.
Daniel Pittman
2010-Dec-13 22:39 UTC
Re: [Puppet Users] Puppet updating from relative directories or chroot
On Fri, Dec 3, 2010 at 22:41, Geoff <geoffnewell@gmail.com> wrote:> Anyone had any experience getting puppet to update multiple OS''s on a > single server?Not without a "container" style virtualization solution wrapped around it. [...]> Can puppet be run in a mode that would take into account relative > directories. i.e. instead of being / (root) based, it would be /pxe/ > hostn/ based?Nope. I didn''t respond earlier, as I imagine most people didn''t, because we hoped someone would actually come along and have some experience that could help you out here. Even if they don''t, though, posting a new message with "bump" in the content doesn''t work like a web forum - it just sends out a new message with that one line in it to everyone subscribed. I had to dig back through the archives to see what you were having trouble with so I could respond. Regards, Daniel -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- 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.
Patrick Mohr
2010-Dec-13 23:15 UTC
Re: [Puppet Users] Puppet updating from relative directories or chroot
On Mon, Dec 13, 2010 at 2:39 PM, Daniel Pittman <daniel@rimspace.net> wrote:> On Fri, Dec 3, 2010 at 22:41, Geoff <geoffnewell@gmail.com> wrote: > > > Anyone had any experience getting puppet to update multiple OS''s on a > > single server? > > Not without a "container" style virtualization solution wrapped around it. > > [...] > > > Can puppet be run in a mode that would take into account relative > > directories. i.e. instead of being / (root) based, it would be /pxe/ > > hostn/ based? > > Nope. > > I didn''t respond earlier, as I imagine most people didn''t, because we > hoped someone would actually come along and have some experience that > could help you out here. Even if they don''t, though, posting a new > message with "bump" in the content doesn''t work like a web forum - it > just sends out a new message with that one line in it to everyone > subscribed. I had to dig back through the archives to see what you > were having trouble with so I could respond. >I was able to see the whole question because he either replied to himself or because he copied and pasted. Could your email client be hiding quoted text? -- 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.
Daniel Pittman
2010-Dec-13 23:19 UTC
Re: [Puppet Users] Puppet updating from relative directories or chroot
On Tue, Dec 14, 2010 at 10:15, Patrick Mohr <kc7zzv@gmail.com> wrote:> On Mon, Dec 13, 2010 at 2:39 PM, Daniel Pittman <daniel@rimspace.net> wrote: >> On Fri, Dec 3, 2010 at 22:41, Geoff <geoffnewell@gmail.com> wrote:>> I didn''t respond earlier, as I imagine most people didn''t, because we >> hoped someone would actually come along and have some experience that >> could help you out here. Even if they don''t, though, posting a new >> message with "bump" in the content doesn''t work like a web forum - it >> just sends out a new message with that one line in it to everyone >> subscribed. I had to dig back through the archives to see what you >> were having trouble with so I could respond. > > I was able to see the whole question because he either replied to himself or > because he copied and pasted. Could your email client be hiding quoted > text?Oh, the embarrassment. Um, yes, he did, and it did. *ahem* Thanks. Daniel Pass me that brown paper bag. -- ✣ Daniel Pittman ✉ daniel@rimspace.net ☎ +61 401 155 707 ♽ made with 100 percent post-consumer electrons -- 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.
jcbollinger
2010-Dec-13 23:21 UTC
[Puppet Users] Re: Puppet updating from relative directories or chroot
On Dec 13, 6:02 am, Geoff <geoffnew...@gmail.com> wrote:> On Dec 3, 11:41 am, Geoff <geoffnew...@gmail.com> wrote: > > Anyone had any experience getting puppet to update multiple OS''s on a > > single server?Like Daniel said, I think the resounding silence that greeted your initial query should be interpreted as a group "No."> > For example, for a set of blades Network booting from a primary > > server, the OS for each blade would be stored on the primary server. > > For example: > > /pxe/host1/<normal OS directory structure> > > /pxe/host2/<normal OS directory structure> > > ..... > > /pxe/hostn/<normal OS directory structure> > > > Can puppet be run in a mode that would take into account relative > > directories. i.e. instead of being / (root) based, it would be /pxe/ > > hostn/ based? > > I''ve tried the chroot approach previously (about 2 years ago) but had > > a nightmare with Ruby libraries.If each /pxe/hostn/ contains a full OS image including Puppet, Facter, and all their dependencies, then you should be able chroot to them and launch puppet[d] within. (Actually, there are a few other details you might need to provide, such as certain working device nodes in /dev and proc mounted inside, but these are general chroot issues.) You could probably use environments or custom facts to associate the desired configuration with each image, despite all the requests coming from the same physical client. If you do this, you will likely find that 1) Some things Puppet can do are inappropriate for your desired usage model. For example, 1a) You can ensure that services are enabled, but not that they are running 1b) You can configure mount points definitions, but you should not ensure them mounted (because they would be mounted on the image, if at all) 2) Some things simply won''t work, or won''t work correctly. Especially, unless you hack up Facter something fierce, some facts presented to the Puppetmaster will reflect the system running Facter/ Puppet rather than the systems on which you intend to load the images. 3) Some things are heavier-weight than you are looking for. For example, if you plan to install software within chroot via Puppet, then in addition to Puppet and all its dependencies, you will also need in each image a copy of the relevant package manager and its local database. Overall, it sounds like a clever idea on the surface, but the details are likely to kill you. 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.
Felix Frank
2010-Dec-14 10:45 UTC
Re: [Puppet Users] Puppet updating from relative directories or chroot
On 12/14/2010 12:19 AM, Daniel Pittman wrote:> On Tue, Dec 14, 2010 at 10:15, Patrick Mohr <kc7zzv@gmail.com> wrote: >> On Mon, Dec 13, 2010 at 2:39 PM, Daniel Pittman <daniel@rimspace.net> wrote: >>> On Fri, Dec 3, 2010 at 22:41, Geoff <geoffnewell@gmail.com> wrote: > >>> I didn''t respond earlier, as I imagine most people didn''t, because we >>> hoped someone would actually come along and have some experience that >>> could help you out here. Even if they don''t, though, posting a new >>> message with "bump" in the content doesn''t work like a web forum - it >>> just sends out a new message with that one line in it to everyone >>> subscribed. I had to dig back through the archives to see what you >>> were having trouble with so I could respond. >> >> I was able to see the whole question because he either replied to himself or >> because he copied and pasted. Could your email client be hiding quoted >> text? > > Oh, the embarrassment. Um, yes, he did, and it did. *ahem* Thanks.Muphry''s Law. Hardly something to be actually embarrassed about :-) Cheers, Felix -- 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.
Geoff
2010-Dec-14 14:58 UTC
[Puppet Users] Re: Puppet updating from relative directories or chroot
Cheers all. I suspected it was going to be too hard. Thought no-one had seen the email as it was sent close to the weekend ;) On Dec 13, 11:19 pm, Daniel Pittman <dan...@rimspace.net> wrote:> On Tue, Dec 14, 2010 at 10:15, Patrick Mohr <kc7...@gmail.com> wrote: > > On Mon, Dec 13, 2010 at 2:39 PM, Daniel Pittman <dan...@rimspace.net> wrote: > >> On Fri, Dec 3, 2010 at 22:41, Geoff <geoffnew...@gmail.com> wrote: > >> I didn''t respond earlier, as I imagine most people didn''t, because we > >> hoped someone would actually come along and have some experience that > >> could help you out here. Even if they don''t, though, posting a new > >> message with "bump" in the content doesn''t work like a web forum - it > >> just sends out a new message with that one line in it to everyone > >> subscribed. I had to dig back through the archives to see what you > >> were having trouble with so I could respond. > > > I was able to see the whole question because he either replied to himself or > > because he copied and pasted. Could your email client be hiding quoted > > text? > > Oh, the embarrassment. Um, yes, he did, and it did. *ahem* Thanks. > > Daniel > > Pass me that brown paper bag. > -- > ✣ Daniel Pittman ✉ dan...@rimspace.net ☎ +61 401 155 707 > ♽ made with 100 percent post-consumer electrons-- 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.
Maybe Matching Threads
- /etc/passwd, shadow, group, hosts
- variables created with generate() function have a newline when used in a template
- Best practices for building a file from distributed data.
- preferred directory structure for multiple environments
- Passing node hostname to the Puppet managed node