There's also the file_line resource that's available with the std lib
module, that might work for you as well.
On Monday, April 21, 2014 3:25:13 PM UTC-7, Joachim Schrod wrote:
>
> Hi,
>
> I'm new to Puppet, and also new to Augeas.
>
> I want to change a line in a file. In particular, the file is
> /usr/share/ghostscript/${gs_version}/Resource/Init/gs_init.ps
> and the line is
> % /DEFAULTPAPERSIZE (a4) def
> that I want to change into
> /DEFAULTPAPERSIZE (a4) def
>
> Is Augeas the right tool for such a task? I looked through its
> available lenses, but there ain't no Postscript lens.
>
> Of course, the other approach would be to use an exec resource to
> change that line.
>
> What is best practice?
>
> Joachim
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Joachim Schrod, Roedermark, Germany
> Email: [email protected] <javascript:>
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6b6b743b-3a6b-45a0-bc40-eec291688374%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.