]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
iscsi group name preserve backward compatibility v3.1.0rc19
authorSébastien Han <seb@redhat.com>
Mon, 20 Aug 2018 13:53:03 +0000 (15:53 +0200)
committerSébastien Han <seb@redhat.com>
Mon, 20 Aug 2018 22:04:37 +0000 (00:04 +0200)
Recently we renamed the group_name for iscsi iscsigws where previously
it was named iscsi-gws. Existing deployments with a host file section
with iscsi-gws must continue to work.

This commit adds the old group name as a backoward compatility, no error
from Ansible should be expected, if the hostgroup is not found nothing
is played.

Close: https://bugzilla.redhat.com/show_bug.cgi?id=1619167
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 77a3a682f358c8e9a40c5b50e980b5e9ec5f6d60)

infrastructure-playbooks/purge-iscsi-gateways.yml
infrastructure-playbooks/rolling_update.yml
site-docker.yml.sample
site.yml.sample

index fa86d126eb6bc0d65b0cd85e7538a5106c358b86..36990143085fa56a43c49e2a66b0f47e3d8ebf50 100644 (file)
@@ -20,7 +20,9 @@
         igw_purge_type: "{{ purge_config }}"
 
 - name: Removing the gateway configuration
-  hosts: iscsigws
+  hosts:
+    - iscsigws
+    - iscsi-gws # for backward compatibility only!
   become: yes
   vars:
     - igw_purge_type: "{{hostvars['localhost']['igw_purge_type']}}"
index 4ef8c3bcfd1a3bb74f4c3f37bf9f47942f814781..a33158bfcc590c8c6b138a607428679595aef25d 100644 (file)
 
   hosts:
     - "{{ iscsi_gw_group_name|default('iscsigws') }}"
+    - iscsi-gws # for backward compatibility only!
 
   serial: 1
   become: True
index 6f6060735a4600b9909d8f4d0dd9e8bd5e93ccc8..3f1bbf4cb6e4b0ee3b8bcc41236c0eed27ff614a 100644 (file)
@@ -12,6 +12,7 @@
   - rbdmirrors
   - clients
   - iscsigws
+  - iscsi-gws # for backward compatibility only!
   - mgrs
 
   gather_facts: false
             start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
   roles:
     - role: ceph-defaults
-      tags: ['ceph_update_config'] 
+      tags: ['ceph_update_config']
     - role: ceph-docker-common
     - role: ceph-config
       tags: ['ceph_update_config']
index 9da493682963884e2d26f759ba2aa17c0af829a2..3cda980367e8d7d77d8f9ec1544bac95a06f1e90 100644 (file)
@@ -13,6 +13,7 @@
   - clients
   - mgrs
   - iscsigws
+  - iscsi-gws # for backward compatibility only!
 
   gather_facts: false
 
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
-- hosts: iscsigws
+- hosts:
+    - iscsigws
+    - iscsi-gws # for backward compatibility only!
   gather_facts: false
   become: True
   pre_tasks: