Questions tagged [augeas]

Augeas is a configuration file API.

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
839 views

augeas: insert directive after comment in httpd.conf

I'm trying to insert a ServerName directive after the corresponding comment in httpd.conf: #ServerName www.example.com:80 This fails: defvar sncomment /files/etc/httpd/conf/httpd.conf/#comment[.= '...
1
vote
0answers
174 views

Is there any way to tell the Puppet augeas resource which encoding to use?

i am new to augeas, and i am getting plenty of errors like: Could not evaluate: invalid byte sequence in UTF-8 in special i expect augeas to honor the encoding declaration in a XML-file <?xml ...
0
votes
0answers
39 views

remove comment from apache cfg file with augeas

How do I get augeas to remove the comment from an apache config file? This is very close but I'm having trouble understanding it. I'm not following how the line "defvar kerncomment" works and how it ...