2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) Ericsson AB and others
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
13 if [ "${DEBUG:-false}" == "true" ]; then
17 # Script for end to end RI-2 deployment using Infra engine and BMRA.
18 # Please refer to README for detailed information.
20 # Get path information
21 CURRENTPATH=$(git rev-parse --show-toplevel)
24 # shellcheck source=./functions.sh
25 source "$CURRENTPATH/functions.sh"
26 # shellcheck source=./deploy.env
27 source "$CURRENTPATH/deploy.env"
29 # ---------------------------------------------------------------------
30 # check installation and runtime prerequisites
31 # ---------------------------------------------------------------------
34 # ---------------------------------------------------------------------
35 # creates a virtual environment for installation of dependencies
36 # ---------------------------------------------------------------------
39 # ---------------------------------------------------------------------
40 # bootstrap install prerequisites
41 # ---------------------------------------------------------------------
42 run_playbook bootstrap
44 # ---------------------------------------------------------------------
45 # Create jump VM from which the installation is performed
46 # ---------------------------------------------------------------------
49 # ---------------------------------------------------------------------
50 # Create BMRA config based on IDF and PDF
51 # ---------------------------------------------------------------------
52 run_playbook bmra-config
54 # ---------------------------------------------------------------------
55 # Copy files needed by Infra engine & BMRA in the jumphost VM
56 # ---------------------------------------------------------------------
59 # ---------------------------------------------------------------------
60 # Provision remote hosts
61 # Setup networking (Adapt according to your network setup)
62 # ---------------------------------------------------------------------
63 if [[ "$DEPLOYMENT" == "full" ]]; then
68 # ---------------------------------------------------------------------
69 # Provision k8s cluster (currently BMRA)
70 # ---------------------------------------------------------------------
73 # ---------------------------------------------------------------------
74 # Copy kubeconfig to desired location
75 # ---------------------------------------------------------------------