<img src=‘https://jenkins-iac.cegeka.be/job/puppet-tomcat/badge/icon’ />
This is the tomcat module. Use this module to install Apache Tomcat.
class { 'tomcat': }
tomcat::conf::setenv { 'setting tomcat env': java_options => [ '-Xms512m', '-Xmx1024m', '-XX:PermSize=256m', '-XX:MaxPermSize=512m', '-Denv.ENVIRONMENT=test' ], }
tomcat::conf::role { 'adding foo role': rolename => 'foo' }
tomcat::conf::user { 'adding user': username => 'tomcat', password => 'tomcat', roles => 'manager-gui, foo' }
tomcat::conf::jaas { 'security setup': loginconf => "JAAS { foo.bar.jaas.loginmodule.DatabaseLoginModule SUFFICIENT debug=true; foo.bar.jaas.loginmodule.FallbackDatabaseLoginModule REQUIRED debug=true; };", java_options => [ '-Dsecurity.url=http://localhost:8080/security' ] }