JENKINS -- My Work -Project - DNS

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 https://www.youtube.com/watch?v=FX322RVNGj4

Windows to connect to OCI 

https://docs.oracle.com/en/solutions/infrastructure-components-to-deploy-peoplesoft/ebs-configuring-terraform-windows-systems.html#GUID-E842E56A-B4E1-4A0C-9015-0EABED56B35C

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Created 3 Compute Instances on OCI .

1. Jenkins server : OPA-Instance_Sreejith_1


Step 1 : Installed Terraform on Windows

 env-vars.ps1 file

  1. To set the environment variables specified in the env-vars file, launch Windows PowerShell, navigate to the folder where your Terraform modules are located, and enter: env-vars.ps1
    This runs the env-vars.ps1 file, which sets all the variables specified in this file for the current session.

 check the setting> dir env:


https://www.terraform.io/downloads

Clicked on 386


 Unzipped in this location : D:\JENKINS-Project-Test\OCI-Compute-Instance

 In the variables file 

variable "api_private_key_path" {
   type = string
   default = "C:/Users/sreejith_b/.oci/oci-private-key.pem"
   description = "private access key"
 }
 
 

In the evn-vars-ps1

$env:TF_VAR_ssh_public_key=$(Get-Content C:\Users\sreejith_b\.oci\oci-public-key.pem)
#
#### Private key used on the compute and database instance
#$env:TF_VAR_ssh_private_key=$(cat C:\Users\sreejith_b\.oci\key_name.pem)
$env:TF_VAR_ssh_private_key=$(Get-Content C:\Users\sreejith_b\.oci\oci-private-key.pem)

 

 

Comments

Popular posts from this blog

Jenkins file | declarative pipeline scripting

Jenkins : Webhooks