Explore More
Review the following Oracle Cloud Infrastructure documentation resources:
- Peering VCNs in different regions through a DRG
- Overview of OCI File Storage
- OCI Vaults
- Oracle Cloud Infrastructure Load Balancer
- Oracle Database High Availability Overview
- Implementing Oracle Active Data Guard
- Creating an Exadata Cloud Infrastructure Instance in Oracle Cloud Exadata Database Service on Dedicated Infrastructure
- PeopleSoft Cloud Manager
- PeopleSoft Cloud Manager documentation
- PeopleSoft Cloud Manager for Oracle Cloud Infrastructure
- PeopleSoft theme downloads on GitHub
For installation and configuration of the command-line interface version of Terraform, see: Terraform Provider.
Working with Terraform
Terraform Discovery will discover the definitions of resources within a compartment at the primary region. You can access Terraform Discovery from the OCI Console. It will create a Terraform stack, held in a downloadable ZIP file.
This example has several subnets, each with one or more security lists, with a few complex security lists containing dozens of ingress rules. For this case study, we chose to use Terraform to discover, then replicate, the resources in the network compartment.
- Virtual Cloud Network (VCN)
- Gateways (Internet, NAT and Service gateways)
- Route tables
- Security lists
- Subnets
Run Terraform Discovery
Run Terraform Discovery to create a Terraform stack and download the ZIP file.
Edit the Terraform Files
.tf
. The contents of the .tf
files depends on what resources are discovered within the compartment. You must make changes to the .tf
files. For example,
export_
is added to all resource definitions, and must be removed.
When working with network discovery, you must also assign a different and
non-overlapping CIDR block, provide a new display name, provide a different DNS label, and
provide a different VCN reference.
Most of the resource definitions are found in the core.tf
JSON
file.
Note:
Before making changes to the.tf
files, we recommend you back
them up.
The following table shows examples of Terraform definitions from the primary region and the changes needed for the secondary region.
Resource Type | Primary Region Definition (Ashburn) | Modifications for Secondary Region (Phoenix) |
---|---|---|
Virtual Cloud Network |
|
Required modifications include removing
export_ , assigning a different non-overlapping
CIDR, display name, and changing the DNS
label:
|
NAT Gateway |
|
Modifications include removing
export_ , changing the display name, and VCN
reference.
|
Route Table |
|
Modifications include removing
export_ , changing the name of the route table,
display name, and VCN
reference.
|
Security List |
|
Modifications include removing
export_ , changing name of the security list and
its display name, changing the CIDR blocks in each ingress rule that
have 10.0.x.y to 10.10.x.y, and changing the VCN reference. Leave
0.0.0.0/0
unchanged.
|
Subnet |
|
Modifications include removing “export_” where it
appears, changing CIDR to a subnet within the VCN for the
Phoenix region, changing the availability domain, changing the
route table and VCN references.
|
As there are patterns to the items that must be changed, using editing tools such as sed can aid in automating the necessary changes.
Deploy Resources with Terraform
Once you've edited all of the resources that will be deployed with Terraform
at the secondary region, collect the .tf
files containing these resources.
You must have the following files:
vars.tf
: This file contains all Terraform variables required to execute Terraform.availability_domain.tf
: This file contains the definitions of all availability domains for the secondary region.- One or more
.tf
files that contain the resource definitions for deploying the chosen resources.
You don't need to include all of the .tf
files that were generated
by the Terraform discovery process at the primary site. Only the files mentioned
above are required.
Follow these steps to use the OCI Console to deploy the resources:
Using PeopleSoft Cloud Manager to Provision Middle Tiers
You can use PeopleSoft Cloud Manager to provision the middle tiers by either installing the software or performing a lift and shift of the application and web tiers.
Install PeopleSoft Application and Middle Tier Software Using PeopleSoft Cloud Manager
This option does not reference the on-premises deployment.
Lift and Shift Application and Web Tiers Using PeopleSoft Cloud Manager
PS_HOME
,
PS_APP_HOME
, and PS_CUSTOM_HOME
. Once the DPK is
created, it is uploaded to an object storage bucket where PeopleSoft Cloud Manager can
access it for deploying new middle tiers in OCI.
See the PeopleSoft Cloud Manager documentation for further details of these options.