Alex Kavanagh
2009-Jan-29 10:02 UTC
[Puppet Users] suitability for puppet with read-only file system
Hi I''m evaluating puppet to manage 77 embedded computers around the UK. They will be installed in various electronic poster displays and kiosks. In order to make the system more robust I intend to have the root file system mounted read-only. I''m assuming that puppet needs to have write access to the file system in order to make any changes. Thus, I would intend to remount the filesystem to read-write prior to puppet making any changes and then remount it back to read-only afterwards. Are there any obvious, or key, points in the puppet code where this remounting can be done? Is it likely to be a big job? Many thanks for any help. Cheers Alex. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ohad Levy
2009-Jan-29 11:22 UTC
[Puppet Users] Re: suitability for puppet with read-only file system
I would run puppet from a script (or cron) and just do something like: mount -o remount,rw / puppetd -o /etc/puppet/puppet.conf -o ..... mount -o remount,ro / another small point, in my embedded playground, ruby/puppet needs at least 32mb system to run, if you want to run it as a daemon you need more memory/swap. (so another reason for a script vs service). cheers, Ohad On Thu, Jan 29, 2009 at 6:02 PM, Alex Kavanagh <tinwood.ajk@googlemail.com>wrote:> > Hi > > I''m evaluating puppet to manage 77 embedded computers around the UK. > They will be installed in various electronic poster displays and > kiosks. > > In order to make the system more robust I intend to have the root file > system mounted read-only. > > I''m assuming that puppet needs to have write access to the file system > in order to make any changes. Thus, I would intend to remount the > filesystem to read-write prior to puppet making any changes and then > remount it back to read-only afterwards. > > Are there any obvious, or key, points in the puppet code where this > remounting can be done? Is it likely to be a big job? > > Many thanks for any help. > Cheers > Alex. > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Alex Kavanagh
2009-Jan-29 14:39 UTC
[Puppet Users] Re: suitability for puppet with read-only file system
Hi Ohad On Jan 29, 11:22 am, Ohad Levy <ohadl...@gmail.com> wrote:> I would run puppet from a script (or cron) and just do something like: > > mount -o remount,rw / > puppetd -o /etc/puppet/puppet.conf -o ..... > mount -o remount,ro /I could do that, but that would mean constantly remounting the filesystem. If possible, I''d rather do it when something needs to be written to the system.> > another small point, in my embedded playground, ruby/puppet needs at least > 32mb system to run, if you want to run it as a daemon you need more > memory/swap. (so another reason for a script vs service).Thanks for the info on memory requirements. I shouldn''t run into problems as they have 512MB (less 64MB for the video card). Cheers Alex.> > cheers, > Ohad > > On Thu, Jan 29, 2009 at 6:02 PM, Alex Kavanagh > <tinwood....@googlemail.com>wrote: > > > > > Hi > > > I''m evaluating puppet to manage 77 embedded computers around the UK. > > They will be installed in various electronic poster displays and > > kiosks. > > > In order to make the system more robust I intend to have the root file > > system mounted read-only. > > > I''m assuming that puppet needs to have write access to the file system > > in order to make any changes. Thus, I would intend to remount the > > filesystem to read-write prior to puppet making any changes and then > > remount it back to read-only afterwards. > > > Are there any obvious, or key, points in the puppet code where this > > remounting can be done? Is it likely to be a big job? > > > Many thanks for any help. > > Cheers > > Alex.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Larry Ludwig
2009-Jan-29 16:06 UTC
[Puppet Users] Re: suitability for puppet with read-only file system
> Thanks for the info on memory requirements. I shouldn''t run into > problems as they have 512MB (less 64MB for the video card). >If using 32 bit (I assume based upon memory usage) you may be able to even have puppet as a daemon. -L --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---