A configuration editing tool that treats configuration files as trees of values.
Questions tagged [augeas]
4 questions
3
votes
2 answers
How to use a toml lens on a single file on Ubuntu 20.04?
I need to read and modify a single file (pcmanfm.conf) in the current directory.
I tried
$ augtool -At "Toml.lns incl $(pwd)/pcmanfm.conf" -I lenses/ print /files
/files
but it does not work. toml.aug (on /usr/share/augeas/lenses/dist/toml.aug)…
Adam Ryczkowski
- 5,493
- 7
- 39
- 60
0
votes
1 answer
What is the scope of lens in saltStack?
I am working on Salt related stuffs, here I found lens inside the augeas module.I have been looked into the saltStack documentation but I could not able to figure out what it actually does ?
augeas.change:
- context: /files/etc/redis/redis.conf
…
Abdulvakaf K
- 181
- 1
- 7
0
votes
2 answers
add alias for localhost in /etc/hosts using Augeas
I am trying to use augtool to auto edit my /etc/hosts, as I wish to add an alias for localhost (so that I can test my webserver with a different host-name, localy).
I have been looking every-ware to find good documentation.
I with to find the node…
ctrl-alt-delor
- 27,473
- 9
- 58
- 102
0
votes
2 answers
With Augeas, how can i modify the value of an attribute, using the current value?
Let's say I have some generic INI-type file, covered best by the Samba.lns. I have an entry like:
attribute = value
And I want to transform value to Some-VALUE-x. For a more concrete example:
augtool> print…
Otheus
- 5,945
- 1
- 22
- 53