Using salt module tomcat for deploying war file

0 votes
I am trying to deploy war file using salt module tomcat.deploy_war but getting an error that says 'KeyError' seems like it doesn't recognize tomcat.deploy_war
Jul 11, 2018 in DevOps Tools by Nilesh
• 7,060 points
778 views

1 answer to this question.

0 votes

tomcat.deploy_war is an execution module, not a state module. In general, execution modules like tomcat.deploy_war are always named imperatively.

You cannot use execution modules in states directly; instead, they are intended to be used in ad-hoc Salt commands.

On the other hand state modules are intended to be used in states and are named declaratively (by the desired end state). In many cases, an execution module has a corresponding state module -- in your case tomcat.deploy_war and tomcat.war_deployed

answered Jul 11, 2018 by Kalgi
• 2,680 points

Related Questions In DevOps Tools

0 votes
1 answer

How to filter IP from a log file using Logstash?

Hi@akhtar, You can use the filter plugin in Logstash. It ...READ MORE

answered Jun 18, 2020 in DevOps Tools by MD
• 95,460 points
1,491 views
0 votes
1 answer

How would you configure Jenkins to build and deploy an application to AWS, Azure, or GCP? Can you share sample code or a Jenkinsfile for deploying with Terraform or CloudFormation?

Set up Jenkins for application building and deployment onto AWS, Azure, or GCP by integrating it with ...READ MORE

answered Nov 14 in DevOps Tools by Gagana
• 6,530 points
66 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 views
0 votes
1 answer

Creating different eslint rules for local development

You can make a dev.eslintrc or similar ...READ MORE

answered Jul 10, 2018 in DevOps Tools by Kalgi
• 2,680 points
852 views
0 votes
1 answer

How to bootstrap droplets using Terraform?

Using passwords on instances is an absolute ...READ MORE

answered Jul 12, 2018 in DevOps Tools by Kalgi
• 2,680 points
723 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP