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
• 6,900 points
55 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,620 points

Related Questions In DevOps Tools

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,040 points
353 views
+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
3,969 views
0 votes
1 answer
0 votes
1 answer
+13 votes
2 answers
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,620 points
33 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,620 points
22 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.