Ask Your Question

How do deploy WAR file using tomcat module

asked 2015-05-07 09:29:23 -0600

rnalluri gravatar image

updated 2015-05-07 20:15:02 -0600

GregLarkin gravatar image


I am new to Puppet and I am trying to deploy the war file using puppet labs tomcat module. I was able to install tomcat module in Puppet master server and below is the site.pp file in my master server.

include tomcat
tomcat::war { 'sample.war':
  catalina_base => '/opt/tomcat/tomcat',
  war_source    =>'/var/tmp/sample.war',

here is the error message when I try to run the puppet test from agent server. Can you please let me know is there something which I am doing wrong here?

root@fiappd46:/var/tmp> puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource type staging::file at /etc/puppetlabs/puppet/environments/production/modules/tomcat/manifests/war.pp:78 on node
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Thanks, RN

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-07 20:19:47 -0600

GregLarkin gravatar image

If you installed the puppetlabs-tomcat module using puppet module install, it should have also installed the nanliu-staging module. However, it appears that module is missing on your Puppet master. You can correct the problem by running the command:

puppet module install nanliu-staging

If you want to install the module to a specific portion of your module path, then add a --modulepath ... option to the command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-05-07 09:29:23 -0600

Seen: 1,027 times

Last updated: May 07 '15