[augeas-devel] Create or update

Raphaël Pinson raphael.pinson at camptocamp.com
Wed Apr 24 15:12:50 UTC 2013


Are you trying to reimplement Puppet types and providers in shell? ;-)


On Wed, Apr 24, 2013 at 5:05 PM, Graham Leggett <minfrin at sharp.fm> wrote:

> Hi all,
>
> What I am trying next is to get "create or update" behaviour to work. In
> other words, if the entry doesn't exist, create it, but if the entry does
> exist, update it.
>
> Trawling google suggests that augtool can't do this (but it would be good
> to have formal confirmation), so I'm trying to do this by running augtool
> directly.
>
> Is there a way for augtool to return a status code of some kind if the
> entry I expect doesn't exist? I can then test for the status, and then
> create or update as needed.
>
> Regards,
> Graham
> --
>
>
> _______________________________________________
> augeas-devel mailing list
> augeas-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/augeas-devel
>



-- 
Raphaël Pinson
Développeur et Formateur Infrastructure
+33 479 926 57 93

Camptocamp France
Savoie Technolac
BP 352
48, avenue du Lac du Bourget
73372 Le Bourget du Lac, Cedex
www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20130424/bb409138/attachment.htm>


More information about the augeas-devel mailing list