]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Add section for rgw loadbalancer in site.yml
authorguihecheng <guihecheng@cmiot.chinamobile.com>
Thu, 4 Apr 2019 03:33:15 +0000 (11:33 +0800)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 6 Jun 2019 15:12:04 +0000 (17:12 +0200)
This drives ceph rgw loadbalancer stuff to run.

Signed-off-by: guihecheng <guihecheng@cmiot.chinamobile.com>
plugins/callback/installer_checkpoint.py
site.yml.sample

index a8262fd99e8827c1827d6f15a06763bffa584624..0a76c0964b6a76a3bf22ef2c8e96ba59c81e3975 100644 (file)
@@ -30,6 +30,7 @@ class CallbackModule(CallbackBase):
             'installer_phase_ceph_rbdmirror',
             'installer_phase_ceph_client',
             'installer_phase_ceph_iscsi_gw',
+            'installer_phase_ceph_rgw_loadbalancer',
         ]
 
         # Define the attributes of the installer phases
@@ -70,6 +71,10 @@ class CallbackModule(CallbackBase):
                 'title': 'Install Ceph iSCSI Gateway',
                 'playbook': 'roles/ceph-iscsi-gw/tasks/main.yml'
             },
+            'installer_phase_ceph_rgw_loadbalancer': {
+                'title': 'Install Ceph RGW LoadBalancer',
+                'playbook': 'roles/ceph-rgw-loadbalancer/tasks/main.yml'
+            },
         }
 
         # Find the longest phase title
index d00f9534504894b0cee7b8e9c161e03c0c007c46..d43860749a277025ff93977cb6da30abd5f383b1 100644 (file)
@@ -13,6 +13,7 @@
   - iscsigws
   - iscsi-gws # for backward compatibility only!
   - grafana-server
+  - rgwloadbalancers
 
   gather_facts: false
   any_errors_fatal: true
             status: "Complete"
             end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
 
+- hosts:
+    - rgwloadbalancers
+  gather_facts: false
+  become: True
+  any_errors_fatal: true
+  pre_tasks:
+    - name: set ceph rgw loadbalancer install 'In Progress'
+      run_once: true
+      set_stats:
+        data:
+          installer_phase_ceph_rgw_loadbalancer:
+            status: "In Progress"
+            start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
+  tasks:
+    - import_role:
+        name: ceph-defaults
+      tags: ['ceph_update_config']
+    - import_role:
+        name: ceph-facts
+      tags: ['ceph_update_config']
+    - import_role:
+        name: ceph-rgw-loadbalancer
+
+  post_tasks:
+    - name: set ceph rgw loadbalancer install 'Complete'
+      run_once: true
+      set_stats:
+        data:
+          installer_phase_ceph_rgw_loadbalancer:
+            status: "Complete"
+            end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"
+
 - hosts: mons
   gather_facts: false
   become: True