Ask Your Question

Puppet error with augeas ins when line already exists

asked 2015-03-18 15:00:19 -0500

aaa gravatar image

Is there a reason that puppet error's when augeas tries to insert a line into a file (my.cnf in this case) that exists from a previous run of puppet? If I delete the lines in the file and run puppet agent it runs successfully but having to delete the lines before running defeats the purpose of using augeas to control the file.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-03-21 03:28:18 -0500

doc75 gravatar image


You can use the option 'onlyif' of the augeas type. If you need to force the value change, then normally it should work.

Perhaps you should post the file content (only relevant part) together with the part of your manifest managing this file with augeas.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-03-18 15:00:19 -0500

Seen: 109 times

Last updated: Mar 21 '15