tests: require a group_vars folder in the scenario dir

This will allow for no changes needed in the ansible playbook command
when adding new scenarios. Each scenario will just need a hosts file and
a group_vars directory to define how the cluster should be setup.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1074/head
Andrew Schoen 2016-11-04 16:35:45 -05:00
parent e25042f65e
commit d5a7f3de8f
3 changed files with 8 additions and 4 deletions

View File

@ -0,0 +1,6 @@
---
ceph_stable: True
public_network: "192.168.42.0/24"
cluster_network: "192.168.43.0/24"
journal_size: 100

View File

@ -1,4 +1,2 @@
[mons]
mon0
mon0 monitor_interface=eth1

View File

@ -20,7 +20,7 @@ commands=
vagrant up --no-provision --provider=virtualbox
bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
initial-members: ansible-playbook -i {toxinidir}/tests/functional/ubuntu/16.04/mon/initial_members/hosts --extra-vars "ceph_stable=True public_network=192.168.42.0/24 cluster_network=192.168.43.0/24 journal_size=100 monitor_interface=eth1" {toxinidir}/site.yml.sample
ansible-playbook -i {changedir}/hosts {toxinidir}/site.yml.sample
py.test -v
vagrant destroy --force