mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(oci): move variables
This commit is contained in:
parent
e5b2f39e99
commit
02fcb7b3ae
3 changed files with 13 additions and 13 deletions
|
|
@ -10,6 +10,6 @@ module "oci_servers" {
|
||||||
|
|
||||||
tenancy_ocid = module.oci_compartment_bootstrap.child_compartment_id
|
tenancy_ocid = module.oci_compartment_bootstrap.child_compartment_id
|
||||||
nsg_id = module.oci_common_private_network.nsg_id
|
nsg_id = module.oci_common_private_network.nsg_id
|
||||||
ssh_authorized_keys = [var.kat_pgp_ssh_public_key]
|
ssh_authorized_keys = var.kat_pgp_ssh_public_key
|
||||||
subnet_id = module.oci_common_private_network.subnet_id
|
subnet_id = module.oci_common_private_network.subnet_id
|
||||||
}
|
}
|
||||||
|
|
@ -24,6 +24,18 @@ variable "tenancy_ocid" {
|
||||||
type = string
|
type = string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "ssh_authorized_keys" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "nsg_id" {
|
||||||
|
type = any
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "subnet_id" {
|
||||||
|
type = any
|
||||||
|
}
|
||||||
|
|
||||||
data "oci_identity_availability_domains" "this" {
|
data "oci_identity_availability_domains" "this" {
|
||||||
compartment_id = var.tenancy_ocid
|
compartment_id = var.tenancy_ocid
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,18 +30,6 @@ variable "micro_display_names" {
|
||||||
type = list(string)
|
type = list(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "ssh_authorized_keys" {
|
|
||||||
type = list(string)
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "nsg_id" {
|
|
||||||
type = any
|
|
||||||
}
|
|
||||||
|
|
||||||
variable "subnet_id" {
|
|
||||||
type = any
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "oci_core_instance" "this" {
|
resource "oci_core_instance" "this" {
|
||||||
count = 2
|
count = 2
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue