[augeas-devel] [Augeas] #216: Support path context for aug_srun

Augeas trac at fedorahosted.org
Tue Aug 16 21:43:48 UTC 2011


#216: Support path context for aug_srun
--------------------------+-------------------------------------------------
  Reporter:  domcleal     |       Owner:  lutter  
      Type:  enhancement  |      Status:  new     
  Priority:  major        |   Milestone:  next    
 Component:  Augeas       |     Version:  devel   
Resolution:               |    Keywords:  aug_srun
--------------------------+-------------------------------------------------
Comment (by lutter):

 Replying to [comment:2 domcleal]:
 > Replying to [comment:1 lutter]:
 >
 > > I guess we need a new 'context' API call and command that mimicks the
 textual substitution that the puppet provider does. Alternatively, we
 could just use a special node, say '/augeas/context' that will always be
 prepended to relative paths.
 >
 > This makes sense, but at what level would Augeas support it?  As part of
 aug_srun only, or at a lower level so even the API calls would heed it?
 This solution sounds best to me.

 I am leaning towards using a special node /augeas/context - initially,
 we'll initalize it to '/files', but it can be modified by all the usual
 means.

 We'll prepend its value to all relative paths passed in through the API,
 i.e. any path not beginning with '/'

 Now we just need patches for that ;)

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/216#comment:3>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list