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

ceph-volume tests add optional flags for vagrant #20849

Merged
merged 1 commit into from Mar 12, 2018
Merged

Conversation

alfredodeza
Copy link
Contributor

Signed-off-by: Alfredo Deza adeza@redhat.com

@@ -39,7 +39,7 @@ changedir=
commands=
git clone -b {env:CEPH_ANSIBLE_BRANCH:master} --single-branch https://github.com/ceph/ceph-ansible.git {envdir}/tmp/ceph-ansible

vagrant up --no-provision {posargs:--provider=virtualbox}
vagrant up {env:VAGRANT_EXTRA_FLAGS:""} --no-provision {posargs:--provider=virtualbox}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure all these vagrant commands take the same flags? Whatever is used for VAGRANT_EXTRA_FLAGS will need to work with up, reload and destroy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea was: "vagrant extra flags == single place that can be used everywhere". In this case "--debug" can be used all over (a.k.a. 'global flag'). We can add ad-hoc ones as well, would you prefer separate, per-sub-command env vars? Might be a little bit more verbose to add them, but could give you far better granularity, which is not a bad idea

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just change the name to VAGRANT_GLOBAL_EXTRA_FLAGS here and we can add subcommand specific ones if we find need for it.

Signed-off-by: Alfredo Deza <adeza@redhat.com>
@andrewschoen andrewschoen merged commit d4eaefe into master Mar 12, 2018
@andrewschoen andrewschoen deleted the wip-cv-env-flags branch March 12, 2018 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants