Skip to content

Commit c62ea54

Browse files
committed
Merge branch 'main' into topic_sk_rename_inputs
2 parents d2cf61e + ae1fb2a commit c62ea54

File tree

177 files changed

+295
-239
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+295
-239
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
# Local .terraform directories

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
1+
Copyright (c) 2023 Oracle and/or its affiliates. All rights reserved.
22

33
The Universal Permissive License (UPL), Version 1.0
44

README.md

Lines changed: 61 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# Oracle WebLogic Server for Oracle Cloud Infrastructure
1+
# OCI Terraform stack for WebLogic Server
22

3-
[Oracle WebLogic Server for Oracle Cloud Infrastructure][wlsoci] allows you to quickly create your Java Enterprise Edition
4-
(Java EE) application environment in [Oracle Cloud Infrastructure (OCI)][oci], including an Oracle WebLogic Server domain,
5-
in a fraction of the time it would normally take on-premises.
3+
The OCI Terraform stack for WebLogic Server allows you to create and configure a WebLogic domain in
4+
[Oracle Cloud Infrastructure (OCI)][oci], in minutes. It will create and/or configure multiple OCI services such as
5+
Compute, Network, OCI Database, Autonomous Database, Identity Cloud Service, Logging, File System, Application
6+
Performance Monitoring and Autoscalings. The WebLogic domain created can be scaled by updating a terraform variable to indicate
7+
the desired number of nodes and re apply the stack or auto-scaling can be configured to automatically adapt to different
8+
workloads in real time.
69

7-
Oracle WebLogic Server for OCI is available as a set of applications in the [Oracle Cloud Infrastructure Marketplace][marketplace].
10+
The OCI Terraform stack for WebLogic Server is available through the Oracle Quick Start or through the
11+
[Oracle Cloud Infrastructure Marketplace][marketplace] as one of the multiple Oracle WebLogic Server for OCI applications.
812
After launching one of these applications, you use a simple wizard interface to configure and provision your domains along
913
with any supporting cloud resources like compute instances, networks and load balancers.
1014

11-
This Quick Start is an alternative to deploy an Oracle WebLogic Server for OCI stack, that can be used to automate the creation
12-
of WebLogic domains in OCI. You can use the Oracle Cloud Infrastructure [Resource Manager (ORM)][orm] or the Terraform
13-
command-line interface (CLI).
14-
15-
For more details on deploying the Oracle WebLogic Server for OCI stack on Oracle Cloud Infrastructure, visit the
16-
"Using Oracle WebLogic Server for OCI" [guide](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/index.html).
15+
For more details about deploying the OCI Terraform stack for WebLogic Server through the OCI Marketplace, visit the
16+
["Using Oracle WebLogic Server for OCI"](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/index.html) guide.
1717

1818
## Common Topologies
1919

20-
WebLogic for OCI offers many options to customize your stack, to create new resources or use existing resources, use features
21-
like Oracle Identity and Cloud Service, etc.
20+
The OCI Terraform stack for WebLogic Server offers many options to customize your environment, to create new resources or configure
21+
existing resources or services such as Network, Oracle Database, Oracle Identity Cloud Service, Logging, File System, etc.
2222

23-
The [solutions](./solutions) directory contains examples of different topologies that can be created in WebLogic for OCI, with
24-
sample tfvars files, and instructions to create the stack.
23+
The [solutions](./solutions) directory contains examples of different topologies that can be created with this Terraform
24+
template, with sample tfvars files, and instructions to create the stack.
2525

2626
The following topologies are included:
2727

@@ -32,44 +32,44 @@ The following topologies are included:
3232

3333
Review each solution for more details.
3434

35-
## Before You Begin with Oracle WebLogic Server for OCI
35+
## Before You Begin with OCI Terraform stack for WebLogic Server
3636

3737
Whether you use Terraform CLI, ORM or the Marketplace to create a stack, you need to perform some pre-requisites. Refer
3838
to the [documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/you-begin-oracle-weblogic-cloud.html) for
39-
the pre-requisite steps to using Oracle WebLogic Server for OCI.
39+
the pre-requisite steps to use the OCI Terraform stack for WebLogic Server.
4040

4141
For pre-requisites specific to Terraform CLI and ORM, see their corresponding section.
4242

43-
## Create Stack Using the Marketplace
43+
## Create the Stack Using the OCI Marketplace
4444

45-
To create, manage and destroy a WebLogic for OCI stack using the Marketplace, follow the instructions in the
46-
[documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/create-stack1.html).
45+
To create, manage and destroy the OCI Terraform stack for WebLogic Server as WebLogic Server for OCI using the Marketplace,
46+
follow the instructions in the [documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/create-stack1.html).
4747

4848
## Create Stack Using the Terraform CLI
4949

5050
You need to install the following software in your computer to create a stack using Terraform CLI:
51-
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). Install the latest version
52-
- [Terraform](https://www.terraform.io/). The scripts in this Quick Start requires Terraform version >= 1.1.2, < 1.2.0
51+
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git). Install the latest version
52+
- [Terraform](https://www.terraform.io/). The scripts in this Quick Start requires Terraform version >= 1.1.2, < 1.2.0
5353

5454
First, get a local copy of this repo. You can make that with the commands:
5555

5656
```bash
57-
git clone https://github.com/oracle-quickstart/weblogic-server-for-oci.git
58-
cd weblogic-server-for-oci/terraform
57+
git clone https://github.com/oracle-quickstart/oci-weblogic-server.git
58+
cd oci-weblogic-server/terraform
5959
ls
6060
```
6161
Example output:
6262

6363
```bash
64-
$ git clone https://github.com/oracle-quickstart/weblogic-server-for-oci.git
65-
Cloning into 'weblogic-server-for-oci'...
64+
$ git clone https://github.com/oracle-quickstart/oci-weblogic-server.git
65+
Cloning into 'oci-weblogic-server'...
6666
remote: Enumerating objects: 2522, done.
6767
remote: Counting objects: 100% (646/646), done.
6868
remote: Compressing objects: 100% (324/324), done.
6969
remote: Total 2522 (delta 449), reused 440 (delta 318), pack-reused 1876
7070
Receiving objects: 100% (2522/2522), 972.92 KiB | 1.54 MiB/s, done.
7171
Resolving deltas: 100% (1735/1735), done.
72-
$ cd weblogic-server-for-oci/terraform
72+
$ cd oci-weblogic-server/terraform
7373
$ ls
7474
autoscaling_variables.tf data_sources.tf edition.tf idcs_variables.tf locals.tf modules/ network_variables.tf oci_images.tf outputs.tf schema.yaml variables.tf weblogic_variables.tf
7575
bastion_variables.tf db_variables.tf fss_variables.tf images/ main.tf mp_variables.tf observability_variables.tf orm/ provider.tf schema_14110.yaml versions.tf
@@ -185,7 +185,8 @@ For example, if you want to create a WebLogic Enterprise Edition UCM stack, copy
185185
to `terraform/mp_image_ee_ucm.auto.tfvars`
186186
187187
Next, you need to configure [variables](./VARIABLES.md) to drive the stack creation. This can be done by creating a
188-
`terraform.tfvars` file in the `terraform` directory, using as a base the tfvars files from one of the [solutions](./solutions).
188+
`terraform.tfvars` file in the `terraform` directory, using variables copied from the tfvars files from one of the [solutions](./solutions)
189+
into the `terraform.tfvars` file.
189190
190191
Make sure the plan looks good. Once you created `terraform.tfvars` in the `terraform` directory, just run:
191192
@@ -195,7 +196,7 @@ terraform plan
195196
196197
### Deploy
197198
198-
If that's good, you can go ahead and apply to deploy the stack:
199+
If terraform plan is successful, you can run terraform apply to deploy the stack:
199200
200201
```bash
201202
terraform apply
@@ -229,7 +230,7 @@ You'll need to enter yes when prompted.
229230
## Create Stack Using OCI Resource Manager
230231
231232
Oracle Cloud Infrastructure [Resource Manager (ORM)][orm] allows you to manage your Terraform configurations and state.
232-
To simplify getting started, the Terraform zip files for use with ORM are created as part of each [release](https://github.com/oracle-quickstart/weblogic-server-for-oci/releases).
233+
To simplify getting started, the Terraform zip files for use with ORM are created as part of each [release](https://github.com/oracle-quickstart/oci-weblogic-server/releases).
233234
234235
If you want to build the zip file to create an ORM stack, you need the following software:
235236
@@ -294,7 +295,7 @@ cd builds
294295
The zip files are generated in the `builds/binaries` directory.
295296
296297
Follow [these steps](https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Tasks/create-stack-local.htm) to create
297-
a ORM stack, using either a zip file from one of the [releases](https://github.com/oracle-quickstart/weblogic-server-for-oci/releases),
298+
a ORM stack, using either a zip file from one of the [releases](https://github.com/oracle-quickstart/oci-weblogic-server/releases),
298299
or a zip file generated manually with the `build_mp_bundles.sh` script.
299300
300301
### Deploy the stack
@@ -316,6 +317,35 @@ steps to perform before running a `destroy` job.
316317
When you no longer need the deployment, you can run a
317318
`destroy` [job](https://docs.oracle.com/en-us/iaas/Content/ResourceManager/Tasks/create-job-destroy.htm) to destroy the stack.
318319
320+
## Troubleshoot
321+
322+
Refer to [documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/troubleshoot-oracle-weblogic-cloud.html)
323+
to identify common problems and learn how to diagnose and solve them.
324+
325+
## License
326+
327+
The OCI Terraform stack for WebLogic Server is licensed under the Universal Permissive License 1.0.
328+
See [LICENSE](./LICENSE) for more details.
329+
330+
The OCI Terraform stack for WebLogic Server does not include entitlement to Oracle WebLogic Server. The entitlement of
331+
Oracle WebLogic Server within the OCI Terraform stack for WebLogic Server can be obtained by using the Oracle WebLogic
332+
Server for OCI images or by using a valid WebLogic Server license with the stack.
333+
334+
### Universal Credits Model (UCM)
335+
The Oracle WebLogic Server for OCI images that include entitlement of Oracle WebLogic Server can be found here:
336+
- Oracle WebLogic Server Enterprise Edition UCM image: https://cloudmarketplace.oracle.com/marketplace/en_US/listing/70276523
337+
- Oracle WebLogic Suite UCM image: https://cloudmarketplace.oracle.com/marketplace/en_US/listing/70277452
338+
339+
When using the Oracle WebLogic Server Enterprise Edition UCM image, the WebLogic for OCI license in governed by the
340+
following terms: https://cloudmarketplace.oracle.com/marketplace/content?contentId=70262301&render=inline
341+
342+
When using the Oracle WebLogic Suite UCM image, the WebLogic for OCI license in governed by the following terms:
343+
https://cloudmarketplace.oracle.com/marketplace/content?contentId=70262277&render=inline
344+
345+
### Bring Your Own License (BYOL)
346+
347+
When deploying using BYOL, the WebLogic for OCI license is governed by the following Licensing terms:
348+
https://cloudmarketplace.oracle.com/marketplace/content?contentId=18088784&render=inline
319349
320350
[wlsoci]: https://docs.oracle.com/en/cloud/paas/weblogic-cloud/index.html
321351
[oci]: https://cloud.oracle.com/cloud-infrastructure

builds/build_cli.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
2-
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
3-
41
#!/usr/bin/env bash
52

3+
# Copyright (c) 2023, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
66
############################################################
77
# Build CLI bundle to run SRG dev tests #
88
############################################################

builds/build_mp_bundles.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
2-
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
3-
41
#!/usr/bin/env bash
52

3+
# Copyright (c) 2023, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
66
############################################################
77
# help #
88
############################################################

builds/build_orm_dev.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
2-
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
3-
41
#!/usr/bin/env bash
52

3+
# Copyright (c) 2023, Oracle and/or its affiliates.
4+
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
5+
66
#######################################################################################################
77
# Build the Oracle Resource Manager (ORM) bundles for developers to test new features or bug fixes #
88
#######################################################################################################

solutions/common/tenancy.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
user_id = "ocid1.user.xxxxxxxxxxxxxx"

solutions/jrf/README.md

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## WebLogic JRF domain with OCI DB
22

3-
This solution creates single/multi node Weblogic cluster with OCI Database and Oracle Identity Cloud Service fronted by a load balancer. The solution will create only one stack at time and further modifications that are done will be done on the same stack.
3+
This solution creates single/multi node Weblogic cluster with OCI Database and Oracle Identity Cloud Service fronted by
4+
a load balancer.
45

56
This topology uses existing infrastructure.
67
- Existing VCN and existing subnets with private WebLogic subnet.
@@ -12,36 +13,49 @@ Oracle Identity Cloud Service (IDCS) is used to authenticate user.
1213
![Full Topology Diagram](Topology.png)
1314

1415
The above diagram shows a topology that includes most of the components supported by the Terraform scripts.
15-
In this scenario, the WebLogic servers are in a private subnet. To access the applications running on WebLogic, an existing OCI load balancer in public regional subnet is used. A bastion instance with a public IP address is provisioned to allow access to the VMs in the private subnet. The Oracle WebLogic Server domain is configured to use Oracle Identity Cloud Service for authentication.
16+
In this scenario, the WebLogic servers are in a private subnet. To access the applications running on WebLogic, an existing
17+
OCI load balancer in public regional subnet is used. A bastion instance with a public IP address is provisioned to allow
18+
access to the VMs in the private subnet. The Oracle WebLogic Server domain is configured to use Oracle Identity Cloud Service
19+
for authentication.
1620

17-
The diagram shows the stack using a database located in a VCN different from the one used by the WebLogic for OCI stack, with VCN peering. Peering is necessary because DB VCN is different from Weblogic VCN. Since existing VCNs are used here, VCNs for WebLogic Server compute instances and the Oracle Cloud Infrastructure Application Database are peered manually before creating the stack for the Oracle WebLogic Server for OCI domain. To peer the VCNs manually, see [Manual VCN Peering](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/configure-database-parameters.html#GUID-6A39A2A7-EF6C-408E-B5C7-C44089A9B134__MANUAL_VCN_PEERING).
21+
The diagram shows the WebLogic domain using a database located in a different VCN, with VCN peering. Peering is necessary
22+
because DB VCN is different from WebLogic VCN. Since existing VCNs are used here, VCNs for WebLogic Server compute instances
23+
and the Oracle Cloud Infrastructure Application Database are peered manually before creating the stack for the WebLogic
24+
domain. To peer the VCNs manually, see [Manual VCN Peering](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/configure-database-parameters.html#GUID-6A39A2A7-EF6C-408E-B5C7-C44089A9B134__MANUAL_VCN_PEERING).
1825

19-
## Before You Begin with Oracle WebLogic Server for OCI
20-
Refer to the [documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/you-begin-oracle-weblogic-cloud.html) for the pre-requisite steps to using Oracle WebLogic Server for OCI.
26+
## Before You Begin with OCI Terraform stack for WebLogic Server
27+
Refer to the [documentation](https://docs.oracle.com/en/cloud/paas/weblogic-cloud/user/you-begin-oracle-weblogic-cloud.html)
28+
for the pre-requisite steps to use the OCI Terraform stack for WebLogic Server.
2129

2230
## Workspace Checkout
23-
- Install latest version of git from http://git-scm.com/downloads
24-
- For Linux and Mac: Add the git to the PATH
31+
- Install the latest version of git from http://git-scm.com/downloads
32+
- For Linux and Mac: Add git to the PATH
2533
- Clone the code using the command:
2634

2735
```bash
28-
git clone https://github.com/oracle-quickstart/weblogic-server-for-oci.git
36+
git clone https://github.com/oracle-quickstart/oci-weblogic-server.git
2937
```
3038

3139
## Organization
32-
The directory weblogic-server-for-oci/solutions/jrf consists of the following terraform files:
40+
The directory oci-weblogic-server/solutions/jrf consists of the following terraform files:
3341

3442
- jrf_instance.tfvars - WebLogic instance, bastion instance and network configuration
3543
- existing_lb.tfvars - Load balancer configuration
3644
- oci_db.tfvars - OCI Database configuration
3745
- idcs.tfvars - IDCS configuration
3846

39-
The directory weblogic-server-for-oci/solutions/common consists of the following:
47+
The directory oci-weblogic-server/solutions/common consists of the following:
4048
- tenancy.tfvars - tenancy configuration
4149

50+
The files in the oci-weblogic-server/inputs directory contain the values of the images for the different combinations of
51+
WebLogic edition and pricing. In this solution, the file _mp_image_ee_byol.tfvars_ is used to create a WebLogic Enterprise
52+
Edition, BYOL instance. Specify a different file to use a different edition and/or pricing.
53+
54+
See the [License](/README.md#license) section for more information to help you decide which _mp_image_*.tfvars_ file to use.
55+
4256
## Using the Terraform command line tool
4357
```bash
44-
cd weblogic-server-for-oci/terraform
58+
cd oci-weblogic-server/terraform
4559
```
4660

4761
Initialize the terraform provider plugin

solutions/jrf/existing_lb.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
### Existing Load Balancer parameters

solutions/jrf/idcs.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
### IDCS parameters

0 commit comments

Comments
 (0)