mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
feat(oci servers); add ipv4 exports
This commit is contained in:
parent
4166e1eabe
commit
8052695501
2 changed files with 25 additions and 1 deletions
|
|
@ -20,4 +20,16 @@ module "oci_servers" {
|
|||
depends_on = [
|
||||
module.oci_compartment_bootstrap
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
output "daiyousei_public_ipv4" {
|
||||
value = module.oci_servers.flex_public_ipv4
|
||||
}
|
||||
|
||||
output "mei_public_ipv4" {
|
||||
value = module.oci_servers.micro_public_ipv4s[0]
|
||||
}
|
||||
|
||||
output "mai_public_ipv4" {
|
||||
value = module.oci_servers.micro_public_ipv4s[1]
|
||||
}
|
||||
|
|
|
|||
12
tf/oci_servers/ipv4.tf
Normal file
12
tf/oci_servers/ipv4.tf
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
locals {
|
||||
flex_public_ipv4 = oci_core_instance.that.public_ip
|
||||
micro_public_ipv4s = oci_core_instance.this[*].public_ip
|
||||
}
|
||||
|
||||
output "flex_public_ipv4" {
|
||||
value = local.flex_public_ipv4
|
||||
}
|
||||
|
||||
output "micro_public_ipv4s" {
|
||||
value = local.micro_public_ipv4s
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue