Augeas is one of the best things I have discover just this year, and I found a tiny chance to write a mini post about adding an option to an already existing entry. At first I tried to build some kind on immutable set of changes, but I couldn’t find it.
I will do it with augtools, in this case I want to add the option barrier=0 to the root:
I’m using augeas 0.7.2 (Debian stable) we need instead this:
Well, Since I need this to be set using puppet and work with any version, I’ll need this on my puppet:
That’s all what you need to add an option to a fstab entry with puppet, and apparently is the only way.