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>
(cherry picked from commit 386afbec83)

Conflicts:
	tests/functional/rhcs_setup.yml
pull/1449/head
Andrew Schoen 2017-04-12 07:53:49 -05:00
parent 672bc9b1b3
commit b6f12fab3e
1 changed files with 26 additions and 0 deletions

View File

@ -20,6 +20,32 @@
dest: "{{ change_dir }}/vagrant_variables.yml"
when: change_dir is defined
- name: change centos/atomic-host vagrant box name to rhel7
replace:
regexp: "centos/atomic-host"
replace: "rhel7"
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