Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:augeas [2014/11/03 15:44] (current)
auguste created
Line 1: Line 1:
 +====== Edit Configuration Files with Augeas ======
  
 +From [[http://​augeas.net|Augeas]] site:
 +
 +"​Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files."​
 +
 +
 +===== Usage example =====
 +
 +Below we select the //shellvars lens// with allow oar.conf manipulation
 +
 +<code bash>
 + ​augtool -t '​Shellvars incl /​etc/​oar/​oar.conf'​
 +
 +   ​augtool>​ print /​files/​etc/​oar/​oar.conf/​
 +
 +   ​augtool>​ get /​files/​etc/​oar/​oar.conf/​DB_TYPE
 +   /​files/​etc/​oar/​oar.conf/​DB_TYPE = "​mysql"​
 +
 +   ​augtool>​ set /​files/​etc/​oar/​oar.conf/​DB_TYPE Pg
 +   ​augtool>​ save
 +   Saved 1 file(s)
 +   ​augtool>​
 +</​code>​
wiki/augeas.txt ยท Last modified: 2014/11/03 15:44 by auguste
Recent changes RSS feed GNU Free Documentation License 1.3 Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki