Augeas is a configuration file API.

learn more… | top users | synonyms

4
votes
2answers
29 views

Puppet: Run Augeas only when a specific package exists

I want to use Augeas to modify "/etc/inittab", but this should only happen when the package "sysvinit" is installed. That package is not under Puppet control (and shall not be). The "onlyif" from ...
1
vote
1answer
24 views

How to ignore the rest of a file in Augeas?

I'm working with a set of config files and I need a way to only cherry pick out certain entries when defining an Augeas lens. How do I effectively state "if what Augeas sees isn't already listed ...
0
votes
1answer
25 views

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 ...
1
vote
1answer
42 views

Augeas edit option if it exist, add otherwise - while referencing newly created node

I want to do something along the lines of: set /files/etc/exports/dir[. = '/export/home'][client = '10.0.0.0/8'] /export/home set /files/etc/exports/dir[. = '/export/home'][client = ...
2
votes
1answer
76 views

How to `augtool` to maintain `/etc/aliases` file?

I'd like to ensure that I have the lines ... root: /dev/null greenman: /dev/null ... in my /etc/aliases file and I have been learning about augtool. I know I could do something like this with ...
3
votes
1answer
175 views

Multiple puppet resources which share a single config file

I'm developing a custom puppet module for managing JBoss Application Servers. I consider each application deployed on the appserver as a self-contained resource. But some of the applications need ...
0
votes
0answers
85 views

Are there additional wildcard escaping rules with Puppet and Augeas (setm)?

I'm trying to perform a setm operation with Augeas via Puppet. This works in augtool: augeas { 'disable ntp from dhcp': changes => 'setm /files/etc/sysconfig/network-scripts/*[label() =~ ...
1
vote
2answers
361 views

Extending Puppet (probably with augeas) for custom configuration format

I have a custom firewall system with our own simple configuration file. Its basically bash source defining a well known variables: SUPERACCESS="127.0.0.1 192.168.11.0/24" SERVICES="ping 80/tcp ...
0
votes
1answer
37 views

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 ...
2
votes
1answer
228 views

How can I use Puppet/Augeas to manage exim dc_local_interfaces configuration?

I need to set the value for "dc_local_interfaces" to "127.0.0.1;::1", but the semi-colon prevents this. This is my definition in Puppet: augeas { "/etc/exim4/update-exim4.conf.conf": lens => ...
0
votes
0answers
137 views

puppet augeas with more than one array in a single key

I am trying to put together a set of puppet policies for grub/menu.lst. The serial::grubmenulst is a puppet define type that looks like this : define serial::grubmenulst ( $value ) { $key = $title ...
0
votes
1answer
113 views

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 ...
1
vote
1answer
62 views

How to copy a branch in augeas

Is there a ready way to copy a branch natively in augeas or via the puppet augeas handler? If the copy operator were natively available in augeas it would be something like cp ...
1
vote
1answer
107 views

Representing a multiline value in Augeas using '\'

I recently assembled a lens in Augeas and now it's not functioning quite as desired. My file contains a few references with the following syntax: Value1 = KEY 32 OR\ KEY 33 OR\ .... How do ...
1
vote
1answer
296 views

Augeas - create new ini section

I have a config file in augeas using a custom lens that outputs the data as follows. /files/opt/../server.conf/target[1] = "general" /files/opt/../server.conf/target[1]/serverName = "XXX" ...
3
votes
1answer
330 views

Using the Augeas INI lens without a header

I am using the IniFile module with augeas to create a Splunk management lens. This works well for all files containing section headers like a normal INI file but there are a couple files that don't ...
4
votes
2answers
312 views

What is the gain by using Puppet instead of Augeas itself?

Puppet uses augeas. What is the gain by using Puppet instead of Augeas itself?
1
vote
1answer
919 views

Using Augeas to modify Squid configuration

I'm running squid-deb-proxy and I want to alter the configuration using Puppet/Augeas. When I try this: augeas {'squid-deb-proxy.conf': lens => 'Squid.lns', incl => ...
1
vote
1answer
516 views

How to set the string “value;othervalue” in php.ini with augeas?

i want to change the session.save_path in the php.ini with augeas default: session.save_path="/var/lib/php5" target value session.save_path="3;/var/lib/php5sessions" augeas returns quite ...
5
votes
2answers
5k views

How to comment out / uncomment a line in a configuration file with Augeas?

Assumming that I have the following in the /etc/syslog.conf file: # Log all kernel messages to the console. # Logging much else clutters up the screen. #kern.* /dev/console ...
7
votes
2answers
1k views

Puppet configuration using augeas fails if combined with notify

I'm having a problem with the following Puppet manifest, which is meant to enable the passwdqc pam module on a RHEL-6 system (this is using Puppet 0.25.5 and augeas 0.7.2): augeas { 'authconfig': ...