bluckau
2012-Jul-19 20:14 UTC
[Puppet Users] Can puppet manage an image rather than a running host
Hi, Can puppet manage images (as opposed to running hosts)? This could be a chroot, an LXC container, etc. -- 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/-/aJZ3-WqDHZEJ. 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
2012-Jul-19 21:24 UTC
[Puppet Users] Re: Can puppet manage an image rather than a running host
On Thursday, July 19, 2012 3:14:04 PM UTC-5, bluckau wrote:> > Hi, > > Can puppet manage images (as opposed to running hosts)? > > This could be a chroot, an LXC container, etc. > >You could perhaps do this with a full-enough chroot environment, especially if you launch the agent on a single-run basis via an external scheduler (e.g. cron) instead of running it as a daemon. You need to fool the agent into seeing the image as the actual operating environment. Alternatively, if the image can be mounted on the real host, then you can manage its contents through the host via File resources. That would have a much different feel and implementation than managing a real host, however. Or you can just use Puppet to sync up newly-imaged systems instead of to maintain the image itself. John -- 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/-/KB4pgzagsfQJ. 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.
Nigel Kersten
2012-Jul-19 22:31 UTC
Re: [Puppet Users] Re: Can puppet manage an image rather than a running host
On Thu, Jul 19, 2012 at 2:24 PM, jcbollinger <John.Bollinger@stjude.org> wrote:> > > On Thursday, July 19, 2012 3:14:04 PM UTC-5, bluckau wrote: >> >> Hi, >> >> Can puppet manage images (as opposed to running hosts)? >> >> This could be a chroot, an LXC container, etc. >> > > You could perhaps do this with a full-enough chroot environment, especially > if you launch the agent on a single-run basis via an external scheduler > (e.g. cron) instead of running it as a daemon. You need to fool the agent > into seeing the image as the actual operating environment.I''ve done this in the past for producing images that are then used in PXE setups so the gap between the image and Puppet stayed small. We ended up needing to tread warily around things like Kerberos principals, but it worked quite seamlessly so long as it looks like an actual operating environment to Puppet. -- 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.