remove duplicates from real world corpus

This commit is contained in:
mhoffm
2021-06-25 15:17:25 +02:00
parent 7182e1745c
commit 77b51d1b78
123 changed files with 0 additions and 2780 deletions

View File

@@ -1,38 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
variable "compartment_ocid" {
description = "Compartment name"
}
variable "availability_domain" {
description = "Availability domain"
type = "list"
}
variable "AD" {
description = "Availability domain"
type= "list"
}
# Bastion host variables
variable "bastion_hostname_prefix" {
description = "Prefix for bastion hostname"
}
variable "bastion_instance_shape" {
description = "Instance shape of bastion host"
}
variable "bastion_subnet" {
description = "Subnet for Bastion host"
type = "list"
}
variable "bastion_image" {
description ="Bation Operating System Image"
}
variable "bastion_ssh_public_key" {
description = "Bastion Host SSH public key"
}

View File

@@ -1,70 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
variable "compartment_ocid" {
description = "Compartment name"
}
variable "availability_domain" {
description = "Availability domain"
type = "list"
}
variable "AD" {
description = "Availability domain"
type= "list"
}
variable "db_subnet" {
description = "Subnet for Bastion host"
type = "list"
}
# Database System variables
variable "db_edition" {
description = "Database Edition"
}
variable "db_version" {
description = "Database version"
}
variable "db_admin_password" {
description = "Database admin password"
}
variable "db_name" {
description = "Database Name"
}
variable "db_disk_redundancy" {
description = "Database disk redundancy for Bare Metal DB System"
default="NORMAL"
}
variable "db_hostname_prefix" {
description = "Database hostname prefix"
}
variable "db_instance_shape" {
description = "Database system shape"
}
variable "db_ssh_public_key" {
description = "Database public ssh key"
}
variable "db_characterset" {
description = "Database characterset"
}
variable "db_nls_characterset" {
description = "Database National characterset"
}
variable "db_workload" {
description = "Database Workload"
default = "OLTP"
}
variable "db_pdb_name" {
}
variable "db_size_in_gb" {
description = "Database size in gb"
}
variable "db_license_model" {
description = "Database License Model"
}
variable "db_node_count" {
description = "Database Node count"
}

View File

@@ -1,29 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "vcnid" {
description = "ocid of VCN"
value = "${oci_core_virtual_network.vcn.id}"
}
output "default_dhcp_id" {
description = "ocid of default DHCP options"
value = "${oci_core_virtual_network.vcn.default_dhcp_options_id}"
}
output "igw_id" {
description = "ocid of internet gateway"
value = "${oci_core_internet_gateway.igw.id}"
}
output "natgtw_id" {
description = "ocid of service gateway"
value = "${oci_core_nat_gateway.natgtw.id}"
}
output "svcgtw_id" {
description = "ocid of service gateway"
value = "${oci_core_service_gateway.svcgtw.id}"
}

View File

@@ -1,50 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Virtual Cloud Network (VCN)
resource "oci_core_virtual_network" "vcn" {
compartment_id = "${var.compartment_ocid}"
cidr_block = "${var.vcn_cidr}"
dns_label = "${var.vcn_dns_label}"
display_name = "${var.vcn_dns_label}"
}
# Internet Gateway
resource "oci_core_internet_gateway" "igw" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}igw"
}
# NAT (Network Address Translation) Gateway
resource "oci_core_nat_gateway" "natgtw" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}natgtw"
}
# Service Gateway
resource "oci_core_service_gateway" "svcgtw" {
compartment_id = "${var.compartment_ocid}"
services {
service_id = "${lookup(data.oci_core_services.svcgtw_services.services[0], "id")}"
}
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}svcgtw"
}
# Dynamic Routing Gateway (DRG)
resource "oci_core_drg" "drg" {
compartment_id = "${var.compartment_ocid}"
display_name = "${var.vcn_dns_label}drg"
}
resource "oci_core_drg_attachment" "drg_attachment" {
drg_id = "${oci_core_drg.drg.id}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}drgattchmt"
}

View File

@@ -1,20 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Terraform version
terraform {
required_version = ">= 0.11.8"
}
# Oracle Cloud Infrastructure (OCI) Provider
provider "oci" {
version = "=3.5.0"
tenancy_ocid = "${var.tenancy_ocid}"
user_ocid = "${var.user_ocid}"
fingerprint = "${var.fingerprint}"
private_key_path = "${var.private_key_path}"
region = "${var.region}"
}

View File

@@ -1,20 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Terraform version
terraform {
required_version = ">= 0.11.8"
}
# Oracle Cloud Infrastructure (OCI) Provider
provider "oci" {
version = "=3.5.0"
tenancy_ocid = "${var.tenancy_ocid}"
user_ocid = "${var.user_ocid}"
fingerprint = "${var.fingerprint}"
private_key_path = "${var.private_key_path}"
region = "${var.region}"
}

View File

@@ -1,20 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Terraform version
terraform {
required_version = ">= 0.11.8"
}
# Oracle Cloud Infrastructure (OCI) Provider
provider "oci" {
version = "=3.5.0"
tenancy_ocid = "${var.tenancy_ocid}"
user_ocid = "${var.user_ocid}"
fingerprint = "${var.fingerprint}"
private_key_path = "${var.private_key_path}"
region = "${var.region}"
}

View File

@@ -1,8 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "Bastion_Public_IPs" {
value = ["${oci_core_instance.bastion.*.public_ip}"]
}

View File

@@ -1,14 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Get CPU and node and node count for a db shape
data "oci_database_db_system_shapes" "db_system_shapes" {
availability_domain = "${element(var.availability_domain, count.index)}"
compartment_id = "${var.compartment_ocid}"
filter {
name = "name"
values = ["${var.db_instance_shape}"]
}
}

View File

@@ -1,19 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "FilesystemPrivateIPs" {
description = "FSS Private IPs"
value = "${data.template_file.fss_ips.*.rendered}"
}
output "FilesystemExports" {
description = "FSS Exports"
value = "${local.fss_exports}"
}
output "FilesystemFstabs" {
description = "FSS /etc/fstab Entries"
value = "${local.fss_fstabs}"
}

View File

@@ -1,12 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "subnetid" {
value = ["${oci_core_subnet.subnet.*.id}"]
}
output "cidr_block" {
value = ["${oci_core_subnet.subnet.*.cidr_block}"]
}

View File

@@ -1,13 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Get name of object storage
data "oci_core_services" "svcgtw_services" {
filter {
name = "name"
values = [".*Object.*Storage"]
regex = true
}
}

View File

@@ -1,47 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Virtual Cloud Network (VCN)
resource "oci_core_virtual_network" "vcn" {
compartment_id = "${var.compartment_ocid}"
cidr_block = "${var.vcn_cidr}"
dns_label = "${var.vcn_dns_label}"
display_name = "${var.vcn_dns_label}"
}
# Internet Gateway
resource "oci_core_internet_gateway" "igw" {
compartment_id = "${var.compartment_ocid}"
display_name = "${var.vcn_dns_label}igw"
vcn_id = "${oci_core_virtual_network.vcn.id}"
}
# NAT (Network Address Translation) Gateway
resource "oci_core_nat_gateway" "natgtw" {
compartment_id = "${var.compartment_ocid}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}natgtw"
}
# Service Gateway
resource "oci_core_service_gateway" "svcgtw" {
compartment_id = "${var.compartment_ocid}"
services {
service_id = "${lookup(data.oci_core_services.svcgtw_services.services[0], "id")}"
}
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}svcgtw"
}
# Dynamic Routing Gateway (DRG)
resource "oci_core_drg" "drg" {
compartment_id = "${var.compartment_ocid}"
display_name = "${var.vcn_dns_label}drg"
}
resource "oci_core_drg_attachment" "drg_attachment" {
drg_id = "${oci_core_drg.drg.id}"
vcn_id = "${oci_core_virtual_network.vcn.id}"
display_name = "${var.vcn_dns_label}drgattch"
}

View File

@@ -1,15 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
variable "compartment_ocid" {
description = "Compartment OCID"
}
# VCN Variables
variable "vcn_cidr" {
description = "VCN CIDR"
}
variable "vcn_dns_label" {
description = "VCN DNS Label"
}

View File

@@ -1,8 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "Bastion_Public_IPs" {
value = ["${oci_core_instance.bastion.*.public_ip}"]
}

View File

@@ -1,12 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
output "subnetid" {
value = ["${oci_core_subnet.subnet.*.id}"]
}
output "cidr_block" {
value = ["${oci_core_subnet.subnet.*.cidr_block}"]
}

View File

@@ -1,19 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Create subnet
resource "oci_core_subnet" "subnet" {
count = "${length(var.availability_domain)}"
availability_domain = "${element(var.availability_domain, count.index)}"
compartment_id = "${var.compartment_ocid}"
vcn_id = "${var.vcn_id}"
cidr_block = "${var.vcn_subnet_cidr[count.index]}"
display_name = "${var.dns_label}${var.AD[count.index]}"
dns_label = "${var.dns_label}${var.AD[count.index]}"
dhcp_options_id = "${var.dhcp_options_id}"
route_table_id = "${var.route_table_id}"
security_list_ids = ["${var.security_list_ids}"]
prohibit_public_ip_on_vnic = "${var.private_subnet}"
}

View File

@@ -1,45 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
/*
variable "tenancy_ocid" {
description = "OCI Tenancy OCID"
}*/
variable "compartment_ocid" {
description = "Compartment name"
}
variable "availability_domain" {
description = "Availability domain"
type = "list"
}
variable "AD" {
description = "Availability domain"
type = "list"
}
# Virtual Cloud Network (VCN) variables
variable "vcn_id" {
description = "VCN OCID"
}
variable "route_table_id" {
description = "VCN Route Table OCID"
}
variable "dhcp_options_id" {
description = "VCN DHCP options OCID"
}
variable "vcn_subnet_cidr" {
description = "CIDR for VCN subnet"
type = "list"
}
variable "security_list_ids" {
description = "Security List OCID"
type = "list"
}
variable "dns_label" {
description = "VCN DNS Label"
}
variable "private_subnet" {
description = "Whether private or public subnet"
}

View File

@@ -1,13 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Get name of object storage
data "oci_core_services" "svcgtw_services" {
filter {
name = "name"
values = [".*Object.*Storage"]
regex = true
}
}

View File

@@ -1,21 +0,0 @@
/*Copyright © 2018, Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0*/
# Terraform version
terraform {
required_version = ">= 0.11.8"
}
# Oracle Cloud Infrastructure (OCI) Provider
provider "oci" {
version = "=3.5.0"
tenancy_ocid = "${var.tenancy_ocid}"
user_ocid = "${var.user_ocid}"
fingerprint = "${var.fingerprint}"
private_key_path = "${var.private_key_path}"
region = "${var.region}"
}

View File

@@ -1,67 +0,0 @@
# OCI Service
variable "tenancy_ocid" {
}
variable "compartment_ocid" {
}
variable "user_count" {
default = 1
}
variable "availability_domain_count" {
default = 3
}
variable "gold_image_ocid" {
default = "na"
}
variable "vm_subnet_id1" {
default = "na"
}
variable "vm_subnet_id2" {
default = "na"
}
variable "vm_subnet_id3" {
default = "na"
}
variable "vm_subnet_id" {
default = ["na1","na2", "na3"]
}
variable "ssh_public_key" {
default = "keys/atpkey.pub"
}
variable "user_ocid" {
}
variable "fingerprint" {
}
variable "private_key_path" {
}
variable "region" {
default = "eu-frankfurt-1"
}
variable "disable_auto_retries" {
default = "false"
}
variable "private_key_password" {
default = ""
}
variable "compute_shape" {
default = "VM.Standard2.1"
}
variable "VM_vcn_id" {
default = ""
}

View File

@@ -1,22 +0,0 @@
provider "oci" {
version = ">= 3.27.0"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
private_key_password = var.private_key_password
region = var.region
disable_auto_retries = var.disable_auto_retries
}
# Get a list of Availability Domains
data "oci_identity_availability_domains" "ads" {
compartment_id = var.tenancy_ocid
}
# Get a list of subdomains
data "oci_core_subnets" "mysubnets" {
compartment_id = var.compartment_ocid
vcn_id = var.VM_vcn_id
}

View File

@@ -1,15 +0,0 @@
# OCI authentication
tenancy_ocid = "ocid1.tenancy.oc1..your_ocid"
compartment_ocid = "ocid1.compartment.oc1..your_ocid"
fingerprint = "69:your_fingerprint:02"
private_key_path = "/Users/your_local_private_key.pem"
user_ocid = "ocid1.user.oc1..your_ocid"
region = "eu-frankfurt-1"
# Compute Shape of the VM's
compute_shape = "VM.Standard2.1"
# Virtual Network to use - OCID to be provided
VM_vcn_id = "ocid1.vcn.oc1.eu-frankfurt-1.your_ocid"

View File

@@ -1,67 +0,0 @@
# OCI Service
variable "tenancy_ocid" {
}
variable "compartment_ocid" {
}
variable "user_count" {
default = 1
}
variable "availability_domain_count" {
default = 3
}
variable "gold_image_ocid" {
default = "na"
}
variable "vm_subnet_id1" {
default = "na"
}
variable "vm_subnet_id2" {
default = "na"
}
variable "vm_subnet_id3" {
default = "na"
}
variable "vm_subnet_id" {
default = ["na1","na2", "na3"]
}
variable "ssh_public_key" {
default = "keys/atpkey.pub"
}
variable "user_ocid" {
}
variable "fingerprint" {
}
variable "private_key_path" {
}
variable "region" {
default = "eu-frankfurt-1"
}
variable "disable_auto_retries" {
default = "false"
}
variable "private_key_password" {
default = ""
}
variable "compute_shape" {
default = "VM.Standard2.1"
}
variable "VM_vcn_id" {
default = ""
}

View File

@@ -1,22 +0,0 @@
provider "oci" {
version = ">= 3.27.0"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
private_key_password = var.private_key_password
region = var.region
disable_auto_retries = var.disable_auto_retries
}
# Get a list of Availability Domains
data "oci_identity_availability_domains" "ads" {
compartment_id = var.tenancy_ocid
}
# Get a list of subdomains
data "oci_core_subnets" "mysubnets" {
compartment_id = var.compartment_ocid
vcn_id = var.VM_vcn_id
}

View File

@@ -1,140 +0,0 @@
// Copyright (c) 2019, 2020 Oracle and/or its affiliates. All rights reserved.
/*
* This is an example of a marketplace agreement
*/
# DATA 1 - Get a list of element in Marketplace, using filters, eg name of the stack
data "oci_marketplace_listings" "test_listings" {
name = ["Oracle WebLogic Server Enterprise Edition UCM"]
#name = ["Oracle Cloud Developer Image"]
compartment_id = var.compartment_ocid
}
# DATA 2 - Get details cf the specific listing you are interested in and which you obtained through generic listing
data "oci_marketplace_listing" "test_listing" {
listing_id = data.oci_marketplace_listings.test_listings.listings[0].id
compartment_id = var.compartment_ocid
}
# DATA 3 - Get the list of versions for the specific entry (11.3, 12.2.1, ....)
data "oci_marketplace_listing_packages" "test_listing_packages" {
#Required
listing_id = data.oci_marketplace_listing.test_listing.id
#Optional
compartment_id = var.compartment_ocid
#package_version = "WLS 10.3.6.0.200714.05(11.1.1.7)"
package_version = data.oci_marketplace_listing.test_listing.default_package_version
}
# DATA 4 - Get details about a specfic version
data "oci_marketplace_listing_package" "test_listing_package" {
#Required
listing_id = data.oci_marketplace_listing.test_listing.id
package_version = data.oci_marketplace_listing_packages.test_listing_packages.package_version
#Optional
compartment_id = var.compartment_ocid
}
# DATA 5 - agreement for a specific version
data "oci_marketplace_listing_package_agreements" "test_listing_package_agreements" {
#Required
listing_id = data.oci_marketplace_listing.test_listing.id
package_version = data.oci_marketplace_listing_packages.test_listing_packages.package_version
#Optional
compartment_id = var.compartment_ocid
}
# RESOURCE 1 - agreement for a specific version
resource "oci_marketplace_listing_package_agreement" "test_listing_package_agreement" {
#Required
agreement_id = data.oci_marketplace_listing_package_agreements.test_listing_package_agreements.agreements[0].id
listing_id = data.oci_marketplace_listing.test_listing.id
package_version = data.oci_marketplace_listing_packages.test_listing_packages.package_version
}
# RESOURCE 2 - Accepted agreement
resource "oci_marketplace_accepted_agreement" "test_accepted_agreement" {
#Required
agreement_id = oci_marketplace_listing_package_agreement.test_listing_package_agreement.agreement_id
compartment_id = var.compartment_ocid
listing_id = data.oci_marketplace_listing.test_listing.id
package_version = data.oci_marketplace_listing_packages.test_listing_packages.package_version
signature = oci_marketplace_listing_package_agreement.test_listing_package_agreement.signature
}
# DATA 1 : list of entry in Marketplace
output "data_1_oci_marketplace_listings" {
sensitive = false
value = [
# For debugging, show full data field
# data.oci_marketplace_listings.test_listings,
format("Listing name: %s", data.oci_marketplace_listings.test_listings.listings[0].name),
format("Package Type: %s", data.oci_marketplace_listings.test_listings.listings[0].package_type)
]
}
# DATA 2 : single entry in Marketplace (wls EE UCM)
output "data_2_oci_marketplace_listing" {
sensitive = false
value = [
# For debugging, show full data field
# data.oci_marketplace_listing.test_listing,
format("Listing name: %s", data.oci_marketplace_listing.test_listing.name),
format("Default version: %s", data.oci_marketplace_listing.test_listing.default_package_version)
]
}
# DATA 4 : Single version of an entry (11g)
output "DATA_4_oci_marketplace_listing_package" {
sensitive = false
value = [
# For debugging, show full data field
# data.oci_marketplace_listing_package.test_listing_package,
format("Resource Link: %s", data.oci_marketplace_listing_package.test_listing_package.resource_link),
format("Version: %s", data.oci_marketplace_listing_package.test_listing_package.version)
]
}
output "DATA_5_oci_marketplace_listing_package_agreements" {
sensitive = false
value = [
# For debugging, show full data field
# data.oci_marketplace_listing_package_agreements.test_listing_package_agreements,
format("Package Version: %s", data.oci_marketplace_listing_package_agreements.test_listing_package_agreements.package_version)
]
}
output "RESOURCE_1_oci_marketplace_listing_package_agreement" {
sensitive = false
value = [
# For debugging, show full data field
# oci_marketplace_listing_package_agreement.test_listing_package_agreement,
format("Package Version: %s", oci_marketplace_listing_package_agreement.test_listing_package_agreement.package_version),
format("Author: %s", oci_marketplace_listing_package_agreement.test_listing_package_agreement.author)
]
}
output "RESOURCE_2_oci_marketplace_accepted_agreement" {
sensitive = false
value = [
# For debugging, show full data field
# oci_marketplace_accepted_agreement.test_accepted_agreement,
format("Package Version: %s", oci_marketplace_accepted_agreement.test_accepted_agreement.package_version),
format("Date Accepted: %s", oci_marketplace_accepted_agreement.test_accepted_agreement.time_accepted)
]
}

View File

@@ -1,10 +0,0 @@
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
data "template_file" "deps_check_template" {
template = "${file("${path.module}/scripts/deps_check.template.sh")}"
vars = {
oracle_base = "${var.oracle_base}"
}
}

View File

@@ -1,6 +0,0 @@
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
output "rendered_deps_check" {
value = "${data.template_file.deps_check_template.rendered}"
}

View File

@@ -1,10 +0,0 @@
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
data "template_file" "deps_check_template" {
template = "${file("${path.module}/scripts/deps_check.template.sh")}"
vars = {
oracle_base = "${var.oracle_base}"
}
}

View File

@@ -1,6 +0,0 @@
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
output "rendered_deps_check" {
value = "${data.template_file.deps_check_template.rendered}"
}

View File

@@ -1,10 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
provider oci {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}

View File

@@ -1,51 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
# COMMON DATA SOURCES
data oci_identity_tenancy tenancy {
tenancy_id = var.tenancy_ocid
}
data oci_identity_regions regions {
}
# Availability Domains
data oci_identity_availability_domains ADs {
compartment_id = var.tenancy_ocid
}
# Oracle Linux VM Image
data oci_core_images oraclelinux {
compartment_id = var.compartment_ocid
operating_system = "Oracle Linux"
operating_system_version = "7.7"
# exclude GPU specific images
filter {
name = "display_name"
values = ["^Oracle-Linux-7.7-([\\.0-9]+)-([\\.0-9-]+)$"]
regex = true
}
}
/*
* Remote State Dependencies
*/
data "terraform_remote_state" "configuration" {
backend = "local"
config = {
path = "../../common/state/common/configuration/terraform.tfstate"
}
}
data "terraform_remote_state" "compartments" {
backend = "local"
config = {
path = "../../common/state/common/compartments/terraform.tfstate"
}
}

View File

@@ -1,20 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
provider oci {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}
// provider for home region for IAM resource provisioning
provider oci {
alias = "home"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = local.home_region
}

View File

@@ -1,10 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
provider oci {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}

View File

@@ -1,10 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
provider oci {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}

View File

@@ -1,20 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
provider oci {
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}
// provider for home region for IAM resource provisioning
provider oci {
alias = "home"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = local.home_region
}

View File

@@ -1,5 +0,0 @@
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
output "image_id" {
value = "${var.market_image_id}"
}

View File

@@ -1,8 +0,0 @@
// Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown
// at http:/oss.oracle.com/licenses/upl.
data "oci_identity_availability_domains" "ads" {
compartment_id = var.tenancy_ocid
}

View File

@@ -1,10 +0,0 @@
// Copyright (c) 2020 Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown
// at http:/oss.oracle.com/licenses/upl.
terraform {
required_providers {
oci = ">= 3.56.0"
}
}

View File

@@ -1,72 +0,0 @@
#===============================================================
# Module Inputs
#===============================================================
variable "tenancy_ocid" {
description = "The OCI tenancy id"
}
variable "compartment_id" {
description = "The OCI compartment id"
}
variable "create_new_vcn" {
description = "If true, a New VCN and Gateway will be created; If false, an existing VCN ID (in the same region) must be provided via the variable existing_vcn_id"
default = false
}
variable existing_vcn_id {
description = "If create_new_vcn is false, provide the id of an existing VCN to use"
default = [ "" ]
}
variable "vcn_cidr" {
description = "The CIDR for the new VCN (if created)"
default = "10.0.0.0/16"
}
variable "vcn_name" {
description = "The name for the new VCN (if created)"
default = "cephvcn"
}
variable "gateway_name" {
description = "The name of the gateway for the new VCN (if created)"
default = "cephgw"
}
variable "route_table_name" {
description = "The name of the route table for the new VCN (if created)"
default = "cephrt"
}
variable "create_new_subnets" {
description = "If true, new subnets will be created; If false, existing subnet ids must be provided via the variable existing_subnet_ids"
default = false
}
variable "new_subnet_count" {
description = "The nubner of subnets to create"
default = "0"
}
variable existing_subnet_ids {
description = "If create_new_subnets is false, provide the list of ids of existing subnets to use"
default = [ "" ]
}
variable "availability_domain_index_list" {
description = "Specifies the availability domain indexes for the subnets"
default = ["1", "2", "3"]
}
variable "subnet_name_prefix" {
description = "The prefix for the subnet names"
default = "cephSub"
}
variable "subnet_cidr_blocks" {
description = "The CIDR for the new subnets(if created)"
default = [ "10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24" ]
}

View File

@@ -1,7 +0,0 @@
// Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
variable user {}
variable password {}
variable domain {}
variable endpoint {}