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
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
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
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