Cimpress-MCP / vagrant-orchestrate

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

Know which branch vorch is executing under from within the Vagrantfile #7

Closed maclennann closed 9 years ago

maclennann commented 9 years ago

If using --environments, I would like to be able to know which environment vorch has determined that I am in so I can use it elsewhere in the Vagrantfile. Specifically, I would like to be able to do something like:

config.ssh.private_key_path = "secrets/#{environment}/[keyname]

and

puppet.options = "--environment #{environment}"
chrisbaldauf commented 9 years ago

I've added the VAGRANT_ORCHESTRATE_GIT_BRANCH environment variable in version 0.3.1, which should allow you to make sure you're reading the same branch as vagrant orchestrate is.