Files
openstack-helm/tools/gate/playbooks/multinode-deploy-cinder.yaml
Vladimir Kozhukalov 1651f252aa Allow custom loopback devices in multinode scripts
story: 2010760
task: 48047
Change-Id: Ie370429a9fe48c98894ce60470e3266649c4685c
2023-06-09 23:20:03 +03:00

84 lines
2.9 KiB
YAML

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- hosts: primary
vars_files:
- vars.yaml
tasks:
- name: Setup OS and K8s Clients
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/010-setup-client.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- name: Deploy Ingress
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/component/common/ingress.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- hosts: all
vars_files:
- vars.yaml
tasks:
- name: Create loopback devices for CEPH on all nodes
environment: "{{ multinode_env }}"
shell: |
set -xe;
pwd;
./tools/deployment/common/setup-ceph-loopback-device.sh --ceph-osd-data ${CEPH_OSD_DATA_DEVICE} --ceph-osd-dbwal ${CEPH_OSD_DB_WAL_DEVICE}
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- hosts: primary
vars_files:
- vars.yaml
tasks:
- name: Deploy Ceph
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/030-ceph.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- name: Setup openstack namespace for ceph
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/040-ceph-ns-activate.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- name: Deploy MariaDB RabbitMQ and Memcached
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/050-mariadb.sh
./tools/deployment/multinode/060-rabbitmq.sh
./tools/deployment/multinode/070-memcached.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- name: Deploy Keystone
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/080-keystone.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"
- name: Deploy Cinder
environment: "{{ multinode_env }}"
shell: |
set -xe;
./tools/deployment/multinode/110-cinder.sh
args:
chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"