tests: clean nfs_ganesha variables

- clean some leftover.
- move nfs_ganesha_[stable|dev] in group_vars so dev_setup.yml can modify them.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 45041f52fd)
pull/4167/head
Guillaume Abrioux 2019-06-25 18:03:27 +02:00
parent 115b457731
commit 3ae024f404
6 changed files with 20 additions and 60 deletions

View File

@ -25,11 +25,3 @@ client1
[rbdmirrors]
rbd-mirror0
[all:vars]
debian_ceph_packages=['ceph', 'ceph-common', 'ceph-fuse']
nfs_ganesha_stable=True
nfs_ganesha_stable_branch="V2.7-stable"
nfs_ganesha_stable_deb_repo="{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
nfs_ganesha_dev=False
nfs_ganesha_flavor="ceph_master"

View File

@ -5,3 +5,7 @@ ganesha_conf_overrides: |
CACHEINODE {
Entries_HWMark = 100000;
}
nfs_ganesha_stable: true
nfs_ganesha_dev: false
nfs_ganesha_flavor: "ceph_master"
nfs_ganesha_stable_branch: "V2.7-stable"

View File

@ -28,9 +28,3 @@ rbd-mirror0
[iscsigws]
iscsi-gw0 ceph_repository="dev"
[all:vars]
nfs_ganesha_stable=True
nfs_ganesha_dev=False
nfs_ganesha_stable_branch="V2.7-stable"
nfs_ganesha_flavor="ceph_master"

View File

@ -28,8 +28,4 @@ rbd-mirror0
[all:vars]
debian_ceph_packages=['ceph', 'ceph-common', 'ceph-fuse']
nfs_ganesha_stable=True
nfs_ganesha_stable_branch="V2.7-stable"
nfs_ganesha_stable_deb_repo="{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
nfs_ganesha_dev=False
nfs_ganesha_flavor="ceph_master"

View File

@ -9,28 +9,30 @@
- block:
- name: set_fact group_vars_path
set_fact:
group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars/all' }}"
group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars' }}"
- block:
- name: change ceph_repository to 'dev'
replace:
regexp: "ceph_repository:.*"
replace: "ceph_repository: dev"
dest: "{{ group_vars_path }}"
dest: "{{ group_vars_path }}/all"
- name: ensure nfs_ganesha_stable is set to False
replace:
regexp: "nfs_ganesha_stable=.*"
replace: "nfs_ganesha_stable=False"
dest: "{{ group_vars_path }}"
- block:
- name: ensure nfs_ganesha_stable is set to False
replace:
regexp: "nfs_ganesha_stable:.*"
replace: "nfs_ganesha_stable: false"
dest: "{{ group_vars_path }}/nfss"
- name: ensure nfs_ganesha_dev is set to True
replace:
regexp: "nfs_ganesha_dev:.*"
replace: "nfs_ganesha_dev=True"
dest: "{{ group_vars_path }}"
- name: ensure nfs_ganesha_dev is set to True
replace:
regexp: "nfs_ganesha_dev:.*"
replace: "nfs_ganesha_dev: true"
dest: "{{ group_vars_path }}/nfss"
when: "'all_daemons' in group_vars_path.split('/')"
when: change_dir is defined
- name: print contents of {{ group_vars_path }}
command: "cat {{ group_vars_path }}"
- name: print contents of {{ group_vars_path }}/all
command: "cat {{ group_vars_path }}/all"
when: dev_setup

View File

@ -5,31 +5,3 @@ mon2 monitor_address=192.168.1.12
[osds]
osd0
osd1
[mdss]
mds0
[rgws]
rgw0
[clients]
client0
client1
#[nfss]
#nfs0
[rbdmirrors]
rbd-mirror0
[iscsigws]
iscsi-gw0 ceph_repository="dev"
[all:vars]
debian_ceph_packages=['ceph', 'ceph-common', 'ceph-fuse']
nfs_ganesha_stable=True
nfs_ganesha_stable_branch="V2.7-stable"
nfs_ganesha_stable_deb_repo="{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
nfs_ganesha_dev=False
nfs_ganesha_flavor="ceph_master"