Cimpress-MCP / vagrant-orchestrate

Cross platform deployment orchestration to existing managed servers using vagrant provisioners
Other
19 stars 13 forks source link

Option disable `vagrant orchestrate push` command if there are multiple servers #43

Open calvn opened 8 years ago

calvn commented 8 years ago

There should be an option to disable the general vagrant orchestrate push command if there are more than one managed servers to prevent accidental push of servers that might be in other environments/datacenters. Something similar to vagrant ssh where you have to specify the target machine if there is more than one, but that also works when passing in a regex in this case.

chrisbaldauf commented 8 years ago

Interesting. So you're looking to require either a regex or the name of an individual server to the vagrant orchestrate push command? How would you expect that to look in the config.orchestrate section of the Vagrantfile?

calvn commented 8 years ago

Correct. Probably similar to how you can disable GUARD_CLEAN through a true/false switch in the Vagrantfile.

chrisbaldauf commented 8 years ago

That doesn't currently exist. "Guard Clean" is currently only controlled by environment variable.

calvn commented 8 years ago

I see. In any case, the config.orchestrate variable for enabling/disabling should be a true/false value. I don't know the exact implementation, though.