Module Version: 2.1.0
Puppet Version: 4.10.9
OS Name/Version: CentOS 7.4
Describe your issue in as much detail as possible...
I have multiple tomcat instances, so I tried to declare the realm resources a bit like this (to avoid duplicate resource issues).
Module produces valid Realm configuration.
The augeas goes wrong and produces this.
puppetName is supposed to be an attribute of the actual Realm (and is supposed to equal to the resource title, not just the title up until the first space).
In my code I've worked around the issue by replacing the spaces with underscores. Dunno if the module should sanitise the resource title itself, or whether it just needs some extra quotes or escape characters somewhere.