Skip to content

Commit 97419bf

Browse files
authored
Custom install update (#870)
* Clarify desktop helper * kubeconfig file * More explicit about infra for Helper Playbook
1 parent 0d0e901 commit 97419bf

File tree

1 file changed

+36
-21
lines changed
  • docs-source/spring/content/on-premises

1 file changed

+36
-21
lines changed

docs-source/spring/content/on-premises/_index.md

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ You must meet the following prerequisites to use the Oracle Backend for Spring B
1515
* Access to a Kubernetes cluster
1616
* [Python 3+](https://www.python.org/)
1717

18-
When installing in a _non-production_ environment, for example a developer's desktop, the previously mentioned pre-requisites may be met through an additional setup task, but there are additional desktop system or software requirements. For example:
18+
When installing in a _desktop_ environment, for example a developer's desktop, the previously mentioned pre-requisites may be met through an additional setup task, but there are additional desktop system or software requirements. For example:
1919

2020
* 2 CPUs or more
2121
* 8 GB of free memory
@@ -31,23 +31,20 @@ Download the latest release of [Oracle Backend for Spring Boot and Microservices
3131

3232
## Setup
3333

34-
A custom installation, whether production or non-production, consists of defining the infrastructure followed by running the Configuration
35-
Management Playbook to build images and deploy the Microservices.
34+
A custom installation consists of defining the infrastructure followed by running the Configuration Management Playbook to build images and deploy the Microservices.
3635

37-
For a production installation, you need to have a Kubernetes cluster and the `kubectl` command-line interface must be configured to
38-
communicate with your cluster.
36+
For a custom installation, you need to have a Kubernetes cluster and the `kubectl` command-line interface must be configured to communicate with your cluster.
3937

40-
A Helper Playbook has been provided for non-production installations to assist in defining the infrastructure. Review the
41-
appropriate documentation for examples of installing and defining the non-production installation. For example:
38+
A Helper Playbook has been provided for desktop installations to assist in defining a specific infrastructure consisting of podman and minikube as outlined in the example documentation:
4239

4340
* [macOS Ventura (x86)](../on-premises/macos_ventura/)
4441
* [Oracle Linux 8 (x86)](../on-premises/ol8/)
4542

46-
The non-production playbook is run as part of the Configuration Management Playbook.
43+
If your infrastructure does not match that defined in the above examples, do not run the Helper Playbook.
4744

4845
## Download the Database or Oracle REST Data Services (ORDS) Images (Desktop Installation)
4946

50-
The non-production installation provisions an Oracle database to the Kubernetes cluster. The images must be downloaded
47+
The desktop installation provisions an Oracle database to the Kubernetes cluster. The images must be downloaded
5148
from [Oracle's Container Registry](https://container-registry.oracle.com/) before continuing.
5249

5350
After installing Podman, process these steps:
@@ -64,13 +61,12 @@ After installing Podman, process these steps:
6461

6562
`podman pull container-registry.oracle.com/database/ords:21.4.2-gh`
6663

67-
### Defining the Parse Application (Production Installation)
64+
### Defining the Application
6865

6966
The application is defined in `ansible/vars/ebaas.yaml`. For example:
7067

7168
```yaml
7269
---
73-
---
7470
ebaas_edition: "COMMUNITY"
7571
vault: ""
7672
vault_key: ""
@@ -87,7 +83,9 @@ oractl_user_password: "Correct-horse-Battery-staple-35"
8783
...
8884
```
8985

90-
### Defining the Database (Production Installation)
86+
Create the `ansible/vars/ebaas.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
87+
88+
### Defining the Database
9189

9290
The database is defined in `ansible/roles/database/vars/main.yaml`. For example:
9391

@@ -98,16 +96,23 @@ database_default_db: BAASPDB
9896
BAASPDB: # noqa: var-naming[pattern]
9997
username: "PDBADMIN"
10098
password: "Correct-horse-Battery-staple-35"
99+
type: "EXTERNAL"
101100
service: "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=BAASPDB)))"
102101
ocid: ""
103102
...
104103
```
105104

106-
The `oracle_dbs` and `default_db` key values should be the name of your Pluggable Database (PDB). These are followed by the PDB
107-
name and Key/Values defining how to access the PDB. If using Mutual Transport Layer Security (mTLS) authentication, specify the
108-
full path of the wallet file.
105+
Create the `ansible/roles/database/vars/main.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
106+
107+
The `database_oracle_dbs` and `database_default_db` key values should be the name of your Pluggable Database (PDB). These are followed by the PDB name and Key/Values defining how to access the PDB.
109108

110-
### Defining the Container Repository (Production Installation)
109+
The `type` can be either:
110+
111+
* **EXTERNAL**: A Pre-existing Oracle Database. Define `service` and leave `ocid` blank.
112+
* **ADB-S**: A Pre-Existing Oracle Autonomous Serverless (ADB-S) database; provide the `ocid` for the ADB-S. Leave `service` blank.
113+
* **SIDB_CONTAINER**: This will create a 19c containerized database inside the Kubernetes Cluster as part of the deployment. Leave `ocid` and `service` blank.
114+
115+
### Defining the Container Repository
111116

112117
The Container Repository is defined in `ansible/roles/registry/vars/main.yaml`. For example:
113118

@@ -128,6 +133,8 @@ registry_pull_auth:
128133
...
129134
```
130135

136+
Create the `ansible/roles/registry/vars/main.yaml` file, setting values as required. If this is a desktop installation, this file will be created for you by the Desktop Helper playbook.
137+
131138
Specify the URL or authentication credentials for your Container Repository in `registry_pull_url`, `registry_push_url`, `registry_username`, and `registry_password`.
132139

133140
For the `registry_pull_auth` and `registry_push_auth` sections, manually log into your repository and copy the values found in the created file, located in `$HOME/.config/containers/auth.json`
@@ -150,20 +157,28 @@ and installs Ansible along with other additional modules. For example:
150157
source ./activate.env
151158
```
152159

153-
### Non-production Playbook
160+
### Desktop Helper Playbook
154161

155-
If this is a production installation, then the infrastructure should be manually defined as previously stated.
162+
If this is a desktop installation, then a Helper Playbook can be used to help define the infrastructure. **Note** that this playbook should only be run if following the desktop installation examples:
156163

157-
If this is a non-production installation, then run the Helper Playbook to define the infrastructure. For example:
164+
* [macOS Ventura (x86)](../on-premises/macos_ventura/)
165+
* [Oracle Linux 8 (x86)](../on-premises/ol8/)
166+
167+
Run the Desktop Helper Playbook to define the infrastructure. For example:
158168

159169
```bash
160170
ansible-playbook ansible/desktop-apply.yaml
161171
```
162172

173+
### Copy kubeconfig
174+
175+
For the desktop installation, this step will have been performed by the Desktop Helper playbook.
176+
177+
Copy the kubeconfig file to `ansible/roles/kubernetes/files`
178+
163179
### Build and Push Images to the Container Repository
164180

165-
For the non-production installation, start a new terminal and tunnel or port-forward to the Minikube cluster. Refer to the specific platform
166-
details for more information.
181+
For the desktop installation, start a new terminal and tunnel or port-forward to the Minikube cluster. Refer to the specific platform details for more information.
167182

168183
For both installations, run the Images Playbook on the original terminal. For example:
169184

0 commit comments

Comments
 (0)