mirror of https://github.com/ceph/ceph-ansible.git
Fix Travis run
Fix travis run and effectively test the playbooks. Signed-off-by: Sébastien Han <sebastien.han@enovance.com>pull/194/head
parent
c7c729101c
commit
965df5579c
|
@ -18,14 +18,14 @@ install:
|
|||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
- "ansible-playbook -i inventory $SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
- "ansible-playbook -i inventory $SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
|
||||
ansible-playbook -i inventory $SITE --connection=local --sudo
|
||||
| grep -q 'changed=0.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# Dummy ansible host file
|
||||
# Used for syntax check
|
||||
# Before committing code please run: ansible-playbook --syntax-check site.yml -i dummy-ansible-hosts
|
||||
[mons]
|
||||
127.0.0.1
|
||||
[osds]
|
||||
127.0.0.1
|
||||
[mdss]
|
||||
127.0.0.1
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- ceph-common
|
||||
- ceph-mon
|
||||
- ceph-osd
|
||||
- ceph-mds
|
||||
- ceph-radosgw
|
||||
- haproxy
|
Loading…
Reference in New Issue