mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(tf): dns outputs
This commit is contained in:
parent
479e8dff28
commit
3f2b0ab1dc
1 changed files with 13 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
locals {
|
||||||
|
dyndns_cidr6 = cidrsubnet("${cloudflare_record.dyndns_aaaa.value}/64", 0, 0)
|
||||||
|
dyndns_address4 = cloudflare_record.dyndns_a.value
|
||||||
|
}
|
||||||
|
|
||||||
resource "cloudflare_api_token" "dyndns" {
|
resource "cloudflare_api_token" "dyndns" {
|
||||||
name = "infra-dyndns"
|
name = "infra-dyndns"
|
||||||
policy {
|
policy {
|
||||||
|
|
@ -55,3 +60,11 @@ output "cloudflare_dyndns_record_a" {
|
||||||
output "cloudflare_dyndns_record_aaaa" {
|
output "cloudflare_dyndns_record_aaaa" {
|
||||||
value = cloudflare_record.dyndns_aaaa.id
|
value = cloudflare_record.dyndns_aaaa.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "cloudflare_dyndns_prefix" {
|
||||||
|
value = local.dyndns_cidr6
|
||||||
|
}
|
||||||
|
|
||||||
|
output "cloudflare_dyndns_address" {
|
||||||
|
value = local.dyndns_address4
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue