I'm no expert with augeas but after looking at the gs_init.ps file, I don't
know of any current lens that could be easily modified to work with it.  I
agree with Mike, I'd either use file_line or an exec.

File_line is part of stdlib.  Click on the "types" tab on this page for an
example.

https://forge.puppetlabs.com/puppetlabs/stdlib

Kent


On Mon, Apr 21, 2014 at 11:32 PM, Mike Langhorst
<mike.langho...@gmail.com>wrote:

> 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: jsc...@acm.org
>>
>>  --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/6b6b743b-3a6b-45a0-bc40-eec291688374%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/6b6b743b-3a6b-45a0-bc40-eec291688374%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kent Brede

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BnSE3-fiXAa9OZLppS0EwK5Uif5L7Rrcd1e22zipO84tyzJjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to