ceph-volume: tox define vagrant cwd

Signed-off-by: Alfredo Deza <adeza@redhat.com>
This commit is contained in:
Alfredo Deza 2017-08-07 16:34:22 -04:00 committed by Andrew Schoen
parent 750d9f4125
commit 89ccbd8ab4

View File

@ -12,6 +12,7 @@ setenv=
ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config
ANSIBLE_STDOUT_CALLBACK = debug
ANSIBLE_RETRY_FILES_ENABLED = False
VAGRANT_CWD = {changedir}
deps=
ansible==2.2.3
testinfra==1.6.0
@ -26,6 +27,7 @@ commands=
bash {toxinidir}/scripts/generate_ssh_config.sh {changedir}
# create logical volumes to test with on the vms
ansible-playbook -vv -i {changedir}/hosts {toxinidir}/setup.yml
ansible-playbook -vv -i {changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/lvm_setup.yml
# use ceph-ansible to deploy a ceph cluster on the vms
@ -36,7 +38,7 @@ commands=
# reboot all vms
vagrant reload --no-provision
# retest to ensure cluster came back up correctly after rebooting
testinfra -n 4 --sudo -v --connection=ansible --ansible-inventory={changedir}/hosts {envdir}/tmp/ceph-ansible/tests/functional/tests