Ask Your Question
0

How do deploy WAR file using tomcat module

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

rnalluri gravatar image

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

GregLarkin gravatar image

Hi,

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 fiappd46.qcorpaa.aa.com
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
1

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

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

Stats

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

Seen: 810 times

Last updated: May 07 '15