Skip to content

cegeka/puppet-tomcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-tomcat module

<img src=‘https://jenkins-iac.cegeka.be/job/puppet-tomcat/badge/icon’ />

This is the tomcat module. Use this module to install Apache Tomcat.

Recommended use

Install tomcat

class { 'tomcat': }

Set environment

tomcat::conf::setenv { 'setting tomcat env':
  java_options => [
    '-Xms512m',
    '-Xmx1024m',
    '-XX:PermSize=256m',
    '-XX:MaxPermSize=512m',
    '-Denv.ENVIRONMENT=test'
  ],
}

Add role to tomcat-users.xml

tomcat::conf::role { 'adding foo role':
  rolename => 'foo'
}

Add user to tomcat-users.xml

tomcat::conf::user { 'adding user':
  username => 'tomcat',
  password => 'tomcat',
  roles    => 'manager-gui, foo'
}

Add JAAS configuration

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'
  ]
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published