I did not find any elegant way to add several lines to an existing file.
I noticed the Simple Text Patterns wiki page, but I have to add a block into
I agree that augeas is by far the best answer to what you are trying.
You would have to define one resource for each line, and if the order is important you can add dependencies between the invocations.
Some time ago, I have started a Puppet Netcf provider. It is still not ready for production, but if you have some Ruby skills, it's probably the best solution for your need (and PRs are most definitely welcome, too).
The Netcf provider takes an XML interface definition as input, for example:
You can find more examples of XML definitions in the Netcf repository.