tests: set needed config in group_vars/all for rhcs testing

Instead of relying on environment variables and --extra-vars simply
modify the group_vars/all that ships with the specific testing scenario
to enable ceph_rchs testing.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/1439/head
Andrew Schoen 2017-04-12 07:53:49 -05:00
parent 63983fa0b7
commit 386afbec83
1 changed files with 19 additions and 0 deletions

View File

@ -27,6 +27,25 @@
dest: "{{ change_dir }}/vagrant_variables.yml"
when: change_dir is defined
- name: change ceph_stable to False
replace:
regexp: "ceph_stable:.*"
replace: "ceph_stable: False"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- name: set ceph_rhcs to True
lineinfile:
line: "ceph_rhcs: True"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- name: set ceph_origin to distro
lineinfile:
line: "ceph_origin: distro"
dest: "{{ change_dir }}/group_vars/all"
when: change_dir is defined
- hosts: all
gather_facts: true
become: yes