https://wikitech.wikimedia.org/wiki/Help:Tool_Labs/Web#Java_.28Tomcat.29 says that you can enter setup-tomcat and it'll do some magic, but the spell does not work:
tools.basebot@tools-bastion-02:~$ setup-tomcat -bash: setup-tomcat: command not found