PuppetLabs have a module on PuppetForge for deploying Tomcat and its configuration. https://forge.puppet.com/puppetlabs/tomcat
Tomcat has a documented feature which prevents you from setting the context path in the file META-INF/context.xml
Instead of setting the context path from the path property in context.xml Tomcat uses the filename of the .war file to determine the path. Other Tomcat options are described in stackoverflow here: How can I specify "Context path" on Tomcat 8 inside META-INF/context.xml in java war file?
In my view putting a version number into the name of the warfile is a good thing, this Tomcat feature is a bad thing.
I'm hoping that PuppetLabs' Tomcat module has a property that allows you to set the context path and work around Tomcat's nastiness.
Does anybody know how to do this ?