From fdeee9eb192b0a1ad1de9c18441eba2254f0d916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Fri, 23 Mar 2018 12:06:58 +0800 Subject: [PATCH] site-docker: add iscsi role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Han --- site-docker.yml.sample | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/site-docker.yml.sample b/site-docker.yml.sample index d4caefacc..b36049438 100644 --- a/site-docker.yml.sample +++ b/site-docker.yml.sample @@ -326,3 +326,28 @@ installer_phase_ceph_client: status: "Complete" end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" + +- hosts: iscsi-gws + gather_facts: false + become: True + pre_tasks: + - name: set ceph iscsi gateway install 'In Progress' + run_once: true + set_stats: + data: + installer_phase_ceph_iscsi_gw: + status: "In Progress" + start: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}" + roles: + - { role: ceph-defaults, tags: ['ceph_update_config'] } + - ceph-docker-common + - { role: ceph-config, tags: ['ceph_update_config'], when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" } + - { role: ceph-iscsi-gw, when: "ceph_release_num[ceph_release] >= ceph_release_num.luminous" } + post_tasks: + - name: set ceph iscsi gw install 'Complete' + run_once: true + set_stats: + data: + installer_phase_ceph_iscsi_gw: + status: "Complete" + end: "{{ lookup('pipe', 'date +%Y%m%d%H%M%SZ') }}"