]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: set ceph_origin and ceph_repository for non_container-collocation
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 27 Feb 2019 10:35:34 +0000 (11:35 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 27 Feb 2019 15:58:35 +0000 (15:58 +0000)
those variables are mandatory.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-mon/tasks/ceph_keys.yml
tests/functional/collocation/group_vars/all

index e4855eacb96cc663bb4079bec4037d6ce8b4c5d5..85b169f4464000725118ba890b05d2ad7e1e5abe 100644 (file)
@@ -46,8 +46,7 @@
       CEPH_CONTAINER_IMAGE: "{{ ceph_docker_registry + '/' + ceph_docker_image + ':' + ceph_docker_image_tag if containerized_deployment else None }}"
       CEPH_CONTAINER_BINARY: "{{ container_binary }}"
     with_items:
-      - "{{ groups.get(mgr_group_name, []) }}" # this honors the condition where mgrs run on separate machines
-      - "{{ groups.get(mon_group_name, []) if groups.get(mgr_group_name, []) | length == 0 else [] }}" # this honors the new rule where mgrs are always collocated with mons
+      - "{{ groups.get(mon_group_name) if groups.get(mgr_group_name, []) | length == 0 else groups.get(mgr_group_name, []) }}"
     run_once: True
     delegate_to: "{{ groups[mon_group_name][0] }}"
 
@@ -57,8 +56,7 @@
       dest: "{{ fetch_directory }}/{{ fsid }}/{{ ceph_conf_key_directory }}/{{ cluster }}.mgr.{{ hostvars[item]['ansible_hostname'] }}.keyring"
       flat: yes
     with_items:
-      - "{{ groups.get(mgr_group_name, []) }}" # this honors the condition where mgrs run on separate machines
-      - "{{ groups.get(mon_group_name, []) if groups.get(mgr_group_name, []) | length == 0 else [] }}" # this honors the new rule where mgrs are always collocated with mons
+      - "{{ groups.get(mon_group_name) if groups.get(mgr_group_name, []) | length == 0 else groups.get(mgr_group_name, []) }}"
     delegate_to: "{{ groups[mon_group_name][0] }}"
   when:
     - cephx
index 0df7c7a6e8436f2d523a069a7233767b4397fc5a..f2fd8fcdc2ff62ef1f960fee27fa69d8f046fae6 100644 (file)
@@ -1,5 +1,7 @@
 ---
 containerized_deployment: False
+ceph_origin: repository
+ceph_repository: community
 monitor_interface: "{{ 'eth1' if ansible_distribution == 'CentOS' else 'ens6' }}"
 radosgw_interface: "{{ 'eth1' if ansible_distribution == 'CentOS' else 'ens6' }}"
 ceph_mon_docker_subnet: "{{ public_network }}"