ceph-mon: move the ceph_config call to ceph-mon role
[ceph-ansible.git] / tox-cephadm.ini
1 [tox]
2 envlist = centos-container-cephadm
3
4 skipsdist = True
5
6 [testenv]
7 whitelist_externals =
8     vagrant
9     bash
10     pip
11     rm
12 passenv=*
13 sitepackages=True
14 setenv=
15   ANSIBLE_SSH_ARGS = -F {changedir}/vagrant_ssh_config -o ControlMaster=auto -o ControlPersist=600s -o PreferredAuthentications=publickey
16   ANSIBLE_CONFIG = {toxinidir}/ansible.cfg
17   ANSIBLE_CALLBACK_WHITELIST = profile_tasks
18   ANSIBLE_KEEP_REMOTE_FILES = 1
19   ANSIBLE_CACHE_PLUGIN = memory
20   ANSIBLE_GATHERING = implicit
21   # only available for ansible >= 2.5
22   ANSIBLE_STDOUT_CALLBACK = yaml
23   # Set the vagrant box image to use
24   CEPH_ANSIBLE_VAGRANT_BOX = centos/8
25
26 deps= -r{toxinidir}/tests/requirements.txt
27 changedir= {toxinidir}/tests/functional/cephadm
28
29 commands=
30   bash {toxinidir}/tests/scripts/vagrant_up.sh --no-provision {posargs:--provider=virtualbox}
31   bash {toxinidir}/tests/scripts/generate_ssh_config.sh {changedir}
32
33   ansible-playbook -vv -i {changedir}/hosts {toxinidir}/infrastructure-playbooks/cephadm.yml --extra-vars "\
34       delegate_facts_host={env:DELEGATE_FACTS_HOST:True} \
35       ceph_docker_registry_auth=True \
36       ceph_docker_registry_username={env:DOCKER_HUB_USERNAME} \
37       ceph_docker_registry_password={env:DOCKER_HUB_PASSWORD} \
38   "
39
40   vagrant destroy -f