Questions tagged [augeas]

Augeas is a configuration file API.

Augeas is a configuration file API written in C. Bindings are available in many languages. In particular, the Ruby bindings are used to provide an Augeas type in Puppet.

Augeas uses bidirectional programs called "lenses" and written in a language similar to Ocaml in order to parse configuration files.

More information: * http://augeas.net

Related:

39 questions
0
votes
1 answer

Augeas error "unexpected LIDENT, expecting UIDENT"

I am trying to implement a new lens based on another one. All I have done so far is to copy the lens in /usr/share/augeas/lenses/dist, changed its filename and the "module" name in the file itself to "xxx". When I run augtool I get this…
Larsen
  • 315
  • 2
  • 14
0
votes
1 answer

Augeas augtool for Java property files

I try to adjust a Java properties file with augeas and can't really get it to work even though my usecase seems very straight forward. I do have a Neo4j server (on Ubuntu 14.04 - installed from the official packages) with the default…
pagid
  • 127
  • 8
0
votes
1 answer

How to read/ modify freetds.conf (for ODBC) using augtool or similar in bash script?

How can I get augtool (augeas) or a similarly common tool to work with freetds.conf, so I can automate some configuration in a bash install script? This doesn't seem to work: augtool print "/files/etc/freetds/freetds.conf" However, this works (but…
Oleg
  • 103
  • 4
0
votes
1 answer

Puppet augeas fails on insert with lens and incl specified

The augeas insert command is throwing an error if I specify a lens and incl in the resource. I haven't really been able to find anyone with a similar problem. When I include the following resource it throws unhelpful error that just says $file =…
user228289
  • 11
  • 1
  • 4
0
votes
1 answer

Parenthesis around value with Augeas lens?

How can I create an Augeas lens that will allow me to extract a value field from within a parenthesis? Background: I'm starting an Augeas lens for managing NASL files for OpenVAS. I need to be able to make a few arbitrary changes to a large number…
Tim Brigham
  • 15,545
  • 10
  • 75
  • 115
0
votes
1 answer

Managing mailman configuration with augeas

I want to create an augeas lens to modify mailman lists. The lists are stored in a binary file which can be exported to a plaintext file using config_list -o /tmp/config my_list and reimported by replacing -o by -i. The goal is to build an augeas…
krissi
  • 3,387
  • 1
  • 19
  • 22
0
votes
1 answer

Augeas tasks are shown as changed, although the file wasn´t changed

I have installed puppet-dashboard and noticed that all my augeas tasks are shown as "changed". I would expect that augeas automatically checks wether the value to be set is already set and in such case would do nothing. My recipe: $puppet_conf =…
Larsen
  • 315
  • 2
  • 14
0
votes
1 answer

Puppet/Augeas -- ins command worked on RH6, fails on RH7

I have this construct in my puppet module to add a line in /etc/sudoers after the last "Defaults" line: augeas { "sudoers.ssh_auth_sock" : lens => "Sudoers.lns", incl => "/etc/sudoers", onlyif => "match Defaults/env_keep/var[. =…
hymie
  • 424
  • 2
  • 11
0
votes
1 answer

Using Augeas Nginx lens to add value to a server_name directive

What I have currently : server { listen 80; server_name www.lala.com lala.com; location / { proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server…
1 2
3