mirror of https://github.com/ceph/ceph-ansible.git
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
parent
e25042f65e
commit
d5a7f3de8f
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
ceph_stable: True
|
||||
public_network: "192.168.42.0/24"
|
||||
cluster_network: "192.168.43.0/24"
|
||||
journal_size: 100
|
|
@ -1,4 +1,2 @@
|
|||
|
||||
[mons]
|
||||
mon0
|
||||
|
||||
mon0 monitor_interface=eth1
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue