From: Andrew Schoen Date: Wed, 22 Mar 2017 15:13:51 +0000 (-0500) Subject: tests: adds a rhcs_setup.yml playbook X-Git-Tag: v2.2.0~20^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d261da66790ff253f5c686bb4064c87d914a088e;p=ceph-ansible.git tests: adds a rhcs_setup.yml playbook This is used to configure the test nodes for testing Ret Had Ceph Storage. Signed-off-by: Andrew Schoen --- diff --git a/tests/functional/rhcs_setup.yml b/tests/functional/rhcs_setup.yml new file mode 100644 index 000000000..4752749f5 --- /dev/null +++ b/tests/functional/rhcs_setup.yml @@ -0,0 +1,70 @@ +--- +- hosts: local + gather_facts: false + become: yes + tags: + - vagrant_setup + tasks: + + - name: change centos/7 vagrant box name to rhel7 + replace: + regexp: "centos/7" + replace: "rhel7" + path: "{{ change_dir }}/vagrant_variables.yml" + when: change_dir is defined + +- hosts: all + gather_facts: true + become: yes + tasks: + + - name: check if it is Atomic host + stat: path=/run/ostree-booted + register: stat_ostree + always_run: true + + - name: set fact for using Atomic host + set_fact: + is_atomic: '{{ stat_ostree.stat.exists }}' + +- hosts: mons + gather_facts: false + become: yes + tasks: + + - name: install ceph mon repo + yum_repository: + name: ceph-mon + description: repo for rhcs ceph-mon + baseurl: "{{ repo_url }}/MON/x86_64/os/" + gpgcheck: no + when: + - not is_atomic + +- hosts: osds + gather_facts: false + become: yes + tasks: + + - name: install ceph osd repo + yum_repository: + name: ceph-osd + description: repo for rhcs ceph-osd + baseurl: "{{ repo_url }}/OSD/x86_64/os/" + gpgcheck: no + when: + - not is_atomic + +- hosts: mdss:rgws:clients + gather_facts: false + become: yes + tasks: + + - name: install ceph tools repo + yum_repository: + name: ceph-osd + description: repo for rhcs ceph tools + baseurl: "{{ repo_url }}/TOOLS/x86_64/os/" + gpgcheck: no + when: + - not is_atomic