2

Ok, I learned how to make a script in augeas but as stated in the answer, the simple file creates a new entry in the file.

I need some conditions (if - else) or at least if (condition) not true do...

I was searching on the internet and found only examples in Puppet. But I dont want to install puppet. Is there a way to tell Augeas only to add node if conditions are (not) met?

Community
  • 1
  • 1
Pavel Janicek
  • 14,128
  • 14
  • 53
  • 77

1 Answers1

1

There's no logic operators in the Augeas language (yet). See this thread for more info on the status of adding it (possibly embedding lua in the C bindings).

If you need such logic, I'd recommend you currently use bindings (Ruby, Python, PHP, Perl, etc. You choose ;))

raphink
  • 3,625
  • 1
  • 28
  • 39