Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to have more than 1 exec, with at least 1 exec should execute successfully?

$
0
0
Hi, I am having a scenario where I have 3 IPs, but not sure which is the proper one. So I want to execute some command with each of the IP. If the command is successful with 1st IP, it should not execute the command for other 2 IPs. If the 1st one failed, it should try with 2nd IP, and so on. If all of them failed only puppet run should fail, otherwise it should till last IP.

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>