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 ##############################################################################
15 # Script for end to end RI-2 deployment using Infra engine and BMRA.
16 # Please refer to README for detailed information.
18 # Get path information
19 CURRENTPATH=$(git rev-parse --show-toplevel)
22 # shellcheck source=./functions.sh
23 source "$CURRENTPATH/functions.sh"
25 # ---------------------------------------------------------------------
26 # check installation and runtime prerequisites
27 # ---------------------------------------------------------------------
30 # shellcheck source=./deploy.env
31 source "$CURRENTPATH/deploy.env"
33 # ---------------------------------------------------------------------
34 # bootstrap install prerequisites
35 # ---------------------------------------------------------------------
36 run_playbook bootstrap
38 # ---------------------------------------------------------------------
39 # Create jump VM from which the installation is performed
40 # ---------------------------------------------------------------------
43 # ---------------------------------------------------------------------
44 # Create BMRA config based on IDF and PDF
45 # ---------------------------------------------------------------------
46 run_playbook bmra-config
48 # ---------------------------------------------------------------------
49 # Copy files needed by Infra engine & BMRA in the jumphost VM
50 # ---------------------------------------------------------------------
53 # ---------------------------------------------------------------------
54 # Provision remote hosts
55 # Setup networking (Adapt according to your network setup)
56 # ---------------------------------------------------------------------
57 if [[ "$DEPLOYMENT" == "full" ]]; then
62 # ---------------------------------------------------------------------
63 # Provision k8s cluster (currently BMRA)
64 # ---------------------------------------------------------------------
67 # ---------------------------------------------------------------------
68 # Copy kubeconfig to desired location
69 # ---------------------------------------------------------------------