Posts

Create OCI Infrastructure : Using Ansible

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Credits to creator of this blog Link below https://www.martinberger.com/2019/03/how-to-build-oci-infrastructure-environments-with-ansible/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Create a User and SSH Keys # groupadd oci # useradd oci -g oci # passwd oci Add this line in /etc/sudoers. oci ALL=(ALL) ALL   Install the Oracle Cloud Infrastructure Python SDK $ sudo yum-config-manager --enable ol7_developer ol7_developer_epel $ sudo yum -y install python-oci-sdk python-oci-cli   -- did this Install the Ansible OCI Modules in one of two ways: https://docs.ansible.com/ansible/latest/scenario_guides/guide_oracle.html $ git clone https://github.com/oracle/oci-ansible-modules.git /etc/ansible/modules/oci-ansible-modules

OCI -- Compute Instance Creation : VCN :Subnet -- Multiple Instances - Practice

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  You can use the same code that you have created and create multiple instances or resources using resourcegroup.   +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I have written a code under the folder testing_self it has a main.tf , variables file etc. Now I am creating another folder by anyname (I am creating the folder as Monto ) -- created a file under the folder as main.tf And I am just calling the code three times using a module  module "instance1" {     source = "../testing_self" } module "instance2" {     source = "../testing_self" } module "instance3" {     source = "../testing_self" } Now terraform init > terraform validate  > terraform plan > terraform apply  You will have thress resources created. === Multiple Instance using Count   COUNT variable MULTIPLE INSTANCES display_name = " ...

OCI -- Compute Instance Creation : VCN :Subnet

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  Creating a Compute Instance over an existing VCN and Subnet Created a VCN and Subnet over OCI and wrote terraform code to launch the compute instance over the same VCN and subnet +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++   ComputeInstance.tf   # resource "oci_core_vcn" "test_vcn" { #     #Required #     compartment_id = var.compartment_id # #    #Optional # #    byoipv6cidr_details { # #        #Required # #        byoipv6range_id = oci_core_byoipv6range.test_byoipv6range.id # #        ipv6cidr_block = var.vcn_byoipv6cidr_details_ipv6cidr_block # #    }     # cidr_block = var.vcn_cidr_block     #cidr_blocks = var.vcn_cidr_blocks     #defined_tags = {"Operations.CostCenter"= "Testing"}     #display_name = var.v...

OCI - Functions

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ https://www.youtube.com/watch?v=MRrwHHRdFqg It is an ETL Solution with Oracle Functions and Cloud events 

OCI -Logging Step by Step Doc

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ eghtxeght_okta https://swigmaster.github.io/index.html?lab=setup#STEP2:CreateandConfigureanIAMDynamicGroup  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ STEP 1: Create an IAM Compartment -- We already have a compartment (sysops) we will be using that for  project STEP 2: Create and Configure an IAM Dynamic Group STEP 3: Create a Virtual Cloud Network  -- I believe we will be using an exsisting VCN  STEP 4: Launch Virtual Machine  -- Instead we will be adding the VMS/ On-Premises server to the Dynamic Group we created. STEP 5 : Create Custom Application Logs  Logging Home : https://docs.oracle.com/en-us/iaas/Content/Logging/home.htm >>> Create Custom Log :        https://docs.oracle.com/en-us/iaas/Content/Logging/Concepts/custom_logs.htm#custom_logs   Create a Custom Log Agent Config   https://swigmaster.git...