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,040 points

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,300 points
0 votes
1 answer
0 votes
1 answer

running comands as non-root user while using docker-maven plugin

Docker needs root access therefore maven commands ...READ MORE

answered Apr 30, 2018 in DevOps Tools by ajs3033
• 7,280 points
+4 votes
4 answers

perform Git checkout using Groovy script

To do git commit: def getGitCommit() { ...READ MORE

answered Dec 6, 2018 in DevOps Tools by Vaidya
+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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
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
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