|
| 1 | +# Azure/OCI Multi-Cloud Installation |
| 2 | + |
| 3 | +The Oracle Backend for Parse Platform is available to install in Multi-Cloud (Azure and OCI). This installation will deplpoy the Oracle Backend for Parse Platform in Azure with an Oracle Autonomous Database running in OCI. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +You must meet the following prerequisites to use the Oracle Backend for Spring Boot Multi-Cloud (Azure and OCI): |
| 8 | + |
| 9 | +* An account on Azure |
| 10 | +* An account on OCI |
| 11 | + |
| 12 | +## Download |
| 13 | + |
| 14 | +Download [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.0/azure-mbaas-platform_latest.zip). |
| 15 | + |
| 16 | +## Setup |
| 17 | + |
| 18 | +A few setup steps are required in both Oracle Cloud Infrastructure (OCI) and Azure to deploy the Oracle Backend for Parse Platform application. |
| 19 | + |
| 20 | +### OCI |
| 21 | + |
| 22 | +The Multi-Cloud Installation will provision an Oracle Autonomous Database in OCI via the [Oracle Database Operator for Kubernetes (OraOperator)](https://github.com/oracle/oracle-database-operator). |
| 23 | + |
| 24 | +To allow the OraOperator access to OCI, an [API Key](https://docs.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm) must be generated: |
| 25 | + |
| 26 | +1. Log into OCI |
| 27 | +2. Open the Profile menu  and click My profile. |
| 28 | +3. In the Resources section at the bottom left, click API Keys |
| 29 | +4. Click Download Private Key and save the key as `private_key.pem`. You do not need to download the public key. |
| 30 | +5. Click Add. |
| 31 | + |
| 32 | +The key is added and the Configuration File Preview is displayed. The file snippet includes required parameters and values you'll need. Copy and paste the configuration file snippet from the text box and keep handy for later steps. |
| 33 | + |
| 34 | +### Azure |
| 35 | + |
| 36 | +The Multi-Cloud Installation will be done via the Azure Cloud Shell. The following steps are required in Azure to prepare for the installation. |
| 37 | + |
| 38 | +1. Log into Azure |
| 39 | +2. Open the Azure Cloud Shell |
| 40 | +  |
| 41 | +3. Upload the [Oracle Backend for Spring Boot](https://github.com/oracle/microservices-datadriven/releases/download/OBAAS-1.0.0/azure-ebaas-platform_latest.zip) Stack |
| 42 | +  |
| 43 | +4. Upload the API Private Key (`private_key.pem`) |
| 44 | +5. Unzip the Stack to a directory called `obaas` |
| 45 | + `unzip azure-ebaas-platform_latest.zip -d obaas` |
| 46 | +6. Move the `private_key.pem` file to obaas |
| 47 | + `mv private_key.pem obaas/` |
| 48 | +5. Run the configuration helper script, inputing the values from the API Key |
| 49 | + * `cd ~/obaas` |
| 50 | + * `./obaas_configure.py` |
| 51 | +  |
| 52 | + |
| 53 | +## Install Ansible |
| 54 | + |
| 55 | +Install Ansible to run the Configuration Management Playbook. The helper scripts will create a Python Virtual Environment and install Ansible and additional modules: |
| 56 | + |
| 57 | +```bash |
| 58 | +cd ~/obaas/ansible |
| 59 | +./setup_ansible.sh |
| 60 | +source ./activate.env |
| 61 | +``` |
| 62 | + |
| 63 | +## Deploy the Infrastructure |
| 64 | + |
| 65 | +From the Azure Cloud Shell: |
| 66 | + |
| 67 | +```bash |
| 68 | +cd ~/obaas |
| 69 | +terraform init |
| 70 | +terraform plan -out=multicloud.plan |
| 71 | +terraform apply "multicloud.plan" |
| 72 | +``` |
| 73 | + |
| 74 | +## Finish |
| 75 | + |
| 76 | +Next, move on the the [Getting Started](../getting-started/) page to learn how to use the newly installed environment. |
0 commit comments