# Copyright 2017 The Openstack-Helm Authors. # # 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 tasks: - name: Deploy Required packages shell: | set -xe; ./tools/deployment/developer/ceph/000-install-packages.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Kubernetes shell: | set -xe; ./tools/deployment/developer/ceph/010-deploy-k8s.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" zuul_site_mirror_fqdn: "{{ zuul_site_mirror_fqdn }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Setup OS and K8s Clients shell: | set -xe; ./tools/deployment/developer/ceph/020-setup-client.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Ingress shell: | set -xe; ./tools/deployment/developer/ceph/030-ingress.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Ceph shell: | set -xe; ./tools/deployment/developer/ceph/040-ceph.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Ceph NS Activate shell: | set -xe; ./tools/deployment/developer/ceph/045-ceph-ns-activate.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Mariadb shell: | set -xe; ./tools/deployment/developer/ceph/050-mariadb.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy RabbitMQ shell: | set -xe; ./tools/deployment/developer/ceph/060-rabbitmq.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Memcached shell: | set -xe; ./tools/deployment/developer/ceph/070-memcached.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Keystone shell: | set -xe; ./tools/deployment/developer/ceph/080-keystone.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Heat shell: | set -xe; ./tools/deployment/developer/ceph/090-heat.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" # - name: Deploy Horizon # shell: | # set -xe; # ./tools/deployment/developer/ceph/100-horizon.sh # args: # chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Keystone Endpoints and User management for CephRGW shell: | set -xe; ./tools/deployment/developer/ceph/110-ceph-radosgateway.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Glance shell: | set -xe; ./tools/deployment/developer/ceph/120-glance.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" GLANCE_BACKEND: "{{ zuul_glance_backend | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Cinder shell: | set -xe; ./tools/deployment/developer/ceph/130-cinder.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy OpenvSwitch when: osh_neutron_backend == 'openvswitch' shell: | set -xe; ./tools/deployment/developer/ceph/140-openvswitch.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy Libvirt shell: | set -xe; ./tools/deployment/developer/ceph/150-libvirt.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy VM Compute Kit shell: | set -xe; ./tools/deployment/developer/ceph/160-compute-kit.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Setup Gateway shell: | set -xe; ./tools/deployment/developer/ceph/170-setup-gateway.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}" - name: Deploy use the cloud shell: | set -xe; ./tools/deployment/developer/ceph/900-use-it.sh environment: OSH_EXTRA_HELM_ARGS: "{{ zuul_osh_extra_helm_args_relative_path | default('') }}" OSH_INFRA_PATH: "{{ zuul_osh_infra_relative_path | default('') }}" args: chdir: "{{ zuul_osh_relative_path | default(zuul.project.src_dir) }}"