|
| 1 | +This solution creates single/multi node WLS cluster with Oracle Cloud Infrastructure File Storage service(FSS) fronted |
| 2 | +by a load balancer. The solution will create only one stack at time and further modifications that are done will be |
| 3 | +done on the same stack. |
| 4 | + |
| 5 | +This topology creates WLS in private subnet. Following regional subnets are created under new VCN. |
| 6 | + |
| 7 | +- WLS Regional Private Subnet |
| 8 | +- Bastion Regional Public Subnet |
| 9 | +- Loadbalancer Frontend Public Subnet |
| 10 | +- Mount Target Regional Private Subnet |
| 11 | + |
| 12 | +In this scenario, the WebLogic servers are created in a private subnet. To access the applications running on WebLogic, a new OCI load balancer in public regional subnet will be created. A bastion instance with a public ip address is provisioned to allow access to the WebLogic VMs in the private subnet. New file system(FSS) and mount target will be created in a private subnet to support mounting shared storage for WLS instance data and middleware. The file system(FSS) will be mounted on each WLS instance at /u01/shared. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +## Before You Begin with Oracle WebLogic Server for OCI |
| 17 | +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. |
| 18 | + |
| 19 | +## Workspace Checkout |
| 20 | +- Install latest version of git from http://git-scm.com/downloads |
| 21 | +- For Linux and Mac: Add the git to the PATH |
| 22 | +- git clone https://github.com/oracle-quickstart/weblogic-server-for-oci.git |
| 23 | + |
| 24 | +## Organization |
| 25 | +The directory weblogic-server-for-oci/solutions/non_jrf consists of the following: |
| 26 | + |
| 27 | +- nonjrf_instance.tfvars - wls instance, bastion instance , and network configuration |
| 28 | +- lb.tfvars - load balancer configuration |
| 29 | +- fss.tfvars - file system configuration |
| 30 | + |
| 31 | +The directory weblogic-server-for-oci/solutions/common consists of the following: |
| 32 | +- tenancy.tfvars - tenancy configuration |
| 33 | + |
| 34 | +## Using the terraform command line tool |
| 35 | + |
| 36 | +cd weblogic-server-for-oci/terraform |
| 37 | + |
| 38 | +Initialize the terraform provider plugin |
| 39 | +$ terraform init |
| 40 | + |
| 41 | +Update the variable values in tfvars files under directories terraform/solutions/common and terraform/solutions/non_jrf according to the user specific values |
| 42 | +Invoke apply passing all *.tfvars files as input |
| 43 | +$ terraform apply -var-file=../solutions/common/tenancy.tfvars -var-file=inputs/mp_image_ee_byol.tfvars -var-file=../solutions/non_jrf/nonjrf_instance.tfvars -var-file=../solutions/non_jrf /lb.tfvars -var-file=../solutions/non_jrf/fss.tfvars |
| 44 | + |
| 45 | +To destroy the infrastructure |
| 46 | +$ terraform destroy -var-file=../solutions/common/tenancy.tfvars -var-file=../solutions/common/mp_byol.tfvars -var-file=../solutions/non_jrf/nonjrf_instance.tfvars -var-file=../solutions/non_jrf/lb.tfvars -var-file=../solutions/non_jrf/fss.tfvars |
| 47 | + |
0 commit comments