Add section for rgw loadbalancer in site.yml

This drives ceph rgw loadbalancer stuff to run.

Signed-off-by: guihecheng <guihecheng@cmiot.chinamobile.com>
pull/4058/head
guihecheng 2019-04-04 11:33:15 +08:00 committed by Guillaume Abrioux
parent 35d40c65f8
commit 96c346743b
2 changed files with 39 additions and 0 deletions

View File

@ -30,6 +30,7 @@ class CallbackModule(CallbackBase):
'installer_phase_ceph_rbdmirror', 'installer_phase_ceph_rbdmirror',
'installer_phase_ceph_client', 'installer_phase_ceph_client',
'installer_phase_ceph_iscsi_gw', 'installer_phase_ceph_iscsi_gw',
'installer_phase_ceph_rgw_loadbalancer',
] ]
# Define the attributes of the installer phases # Define the attributes of the installer phases
@ -70,6 +71,10 @@ class CallbackModule(CallbackBase):
'title': 'Install Ceph iSCSI Gateway', 'title': 'Install Ceph iSCSI Gateway',
'playbook': 'roles/ceph-iscsi-gw/tasks/main.yml' '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 # Find the longest phase title

View File

@ -13,6 +13,7 @@
- iscsigws - iscsigws
- iscsi-gws # for backward compatibility only! - iscsi-gws # for backward compatibility only!
- grafana-server - grafana-server
- rgwloadbalancers
gather_facts: false gather_facts: false
any_errors_fatal: true any_errors_fatal: true
@ -426,6 +427,39 @@
status: "Complete" status: "Complete"
end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" 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 - hosts: mons
gather_facts: false gather_facts: false
become: True become: True