Re: [Puppet Users] Re: Long processing time using Augeas

2012-08-01 Thread Dominic Cleal
On 31/07/12 19:16, Jake - USPS wrote: > Try something like the following instead (added 'incl' and 'lens' and > removed context as its default based on incl is what you had) : > > augeas { 'homeLV': > incl => '/etc/fstab', > lens => 'Fstab.lns', > changes => [ > 'set *[file = "/home"]/du

Re: [Puppet Users] Re: Long processing time using Augeas

2012-08-01 Thread Alexander Holte-Davidsen
This did indeed make a huge difference. From about 10 seconds when loading everything, down to 0.22 seconds(!). Thanks for your help, Jake! / Alexander On Tue, Jul 31, 2012 at 8:16 PM, Jake - USPS wrote: > Try something like the following instead (added 'incl' and 'lens' and > removed context a

[Puppet Users] Re: Long processing time using Augeas

2012-07-31 Thread Jake - USPS
Try something like the following instead (added 'incl' and 'lens' and removed context as its default based on incl is what you had) : augeas { 'homeLV': incl => '/etc/fstab', lens => 'Fstab.lns', changes => [ 'set *[file = "/home"]/dump 0', 'set *[file = "/home"]/passno 0', ], o

[Puppet Users] Re: Long processing time using Augeas

2012-07-31 Thread Alexander Holte-Davidsen
After some more debugging, it looks like it takes about one second to process each augeas block, so putting all the statements in one block speeds things up a lot. Are there any other ways to do this? I want to be able to check if the mount point exists before I try change... Regards, Alexander