Update Existing Tools to Create and Deploy a Custom Domain

If your existing tool set can create and update domains, you can update the tool set to use relevant domain information from Oracle Cloud Infrastructure to create domains and deploy applications.

This method connects to the virtual machine (VM) that hosts the admin server and extracts the relevant domain information from the provisioned infrastructure (machine hostnames and ports). Use this information to update existing deployment tooling used to create domains and deploy applications and target the newly provisioned infrastructure.

If you integrate the Terraform deployment script as part of your deployment tooling, you can also extract metadata from the state of the terraform script.

Scripts and helpers that you can use to used to extract the metadata and create a new domain are available in the folder /opt/scripts on each VM.

  1. Use secure shell (SSH) to connect to the admin server VM and extract metadata.
    # SSH to the admin server VM
    ssh opc@${ADMIN_SERVER_IP}
    # extract metadata information using the meta data service endpoint
    curl http://<admin_server_ip>/opc/v1/instance/metadata/
    
    # specific meta data can be extracted with the key name
    # useful keys: 
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_admin_server_name
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_admin_port
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_ms_ssl_port
    curl http://<admin_server_ip>/opc/v1/instance/metadata/service_name 
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_domain_name
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_admin_host
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_admin_ssl_port
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_machine_name
    curl http://<admin_server_ip>/opc/v1/instance/metadata/total_vm_count
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_cluster_name
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_ms_server_name
    curl http://<admin_server_ip>/opc/v1/instance/metadata/host_index
    curl http://<admin_server_ip>/opc/v1/instance/metadata/wls_nm_port
  2. Extract metadata about the network.
    # info about VNICs
    curl http://<admin_server_ip>/opc/v1/vnics/