Definitely have a look at the debug output though,...
# puppet
g
Definitely have a look at the debug output though, and see why augeas is failing to write the file. I agree that that's your first and biggest thing to pick apart.