Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`when: stage == 'production'` logic fails in provision.yml #163

Merged
merged 1 commit into from Dec 13, 2016

Conversation

@EvanK
Copy link
Contributor

commented Dec 13, 2016

Provisioning tasks fails when trying to evaluate `when: stage == 'production' in tasks

Terminal Output:

==> local: TASK: [Add New Relic key] *****************************************************
==> local: fatal: [127.0.0.1] => error while evaluating conditional: stage == 'production'
==> local:
==> local: FATAL: all hosts have already failed -- aborting
==> local:
==> local: PLAY RECAP ********************************************************************
==> local:            to retry, use: --limit @/root/provision.retry
==> local:
==> local: 127.0.0.1                  : ok=48   changed=41   unreachable=1    failed=0
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

There are several tasks running in provision.yml that only run when: stage == 'production' - file here

During local provisioning the 1st of those tasks fails (and vagrant never finishes setting up the box).

@EvanK

This comment has been minimized.

Copy link
Contributor

commented Dec 12, 2016

We should just need an explicit -e stage=local in the Vagrantfile call to the provision script.

I'll get this tagged and released sometime today

@EvanK EvanK merged commit 7a2362e into master Dec 13, 2016
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
continuous-integration/travis-ci/push The Travis CI build could not complete due to an error
Details
@EvanK

This comment has been minimized.

Copy link
Contributor

commented Dec 13, 2016

@jdsteinbach this has been released as v0.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.