Menu
  • HOME
  • TAGS

How to use augtool without a lense?

linux,bash,puppet,augeas

Augeas cannot guess which lens to use. For example, in the case of a Desktop file (your example), many lenses could be used (MySQL.lns, PHP.lns, etc.) but each of them would introduce restrictions that would not be compatible with the Desktop format. In your case, you want to use the...

Augeas in Puppet for mysql config failing

mysql,nginx,puppet,augeas

Okay, so I've managed to get SOMETHING happening; but without probably fully understanding what's going on. Prior to asking the question above, I checked on the stock lenses available, and I saw both the PHP and MySQL lenses in the list at http://augeas.net/stock_lenses.html Neither of the links work that SHOULD...

Is there any hope of parsing csv-like file with augeas?

augeas

No, it's not possible in Augeas to store the values in the header and reuse them as labels for every line. You can however build a tree like this one: { "#comment" = "header1 header2 header3" } { "1" { "1" = "valA1" } { "2" = "valA2" } {...

Create conf file with Augeas

bash,centos,augeas

Got it figured out, I wasn't quoting properly. The same command that worked in augtool prompt did not work in my bash script. In the script I was able to set the directive itself and the only thing different about the argument is the use of * and [] which...