Adds subdomain joy for Grafana

This commit is contained in:
Alexander Hosking 2019-12-30 00:08:32 -05:00
parent faad21b1df
commit 6a8f8ca43a
3 changed files with 1023 additions and 686 deletions

View File

@ -57,9 +57,10 @@ resource "cloudflare_record" "home_ahoskingit" {
### Home Subdomains ### ### Home Subdomains ###
resource "cloudflare_record" "temps_home_ahoskingit" { resource "cloudflare_record" "temps_home_ahoskingit" {
zone_id = cloudflare_zone.ahoskingit_com.id zone_id = cloudflare_zone.ahoskingit_com.id
name = "temperature.home" name = "temperatures.home"
type = "CNAME" type = "A"
value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone]) # value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone])
value = var.home_ip
proxied = "true" proxied = "true"
} }
### END Home Subdomains ### ### END Home Subdomains ###

View File

@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "0.12.18", "terraform_version": "0.12.18",
"serial": 70, "serial": 73,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@ -91,7 +91,7 @@
"failover_routing_policy": [], "failover_routing_policy": [],
"fqdn": "ahosking.com", "fqdn": "ahosking.com",
"geolocation_routing_policy": [], "geolocation_routing_policy": [],
"health_check_id": null, "health_check_id": "",
"id": "Z1OR5RX3464I7O_ahosking.com._TXT", "id": "Z1OR5RX3464I7O_ahosking.com._TXT",
"latency_routing_policy": [], "latency_routing_policy": [],
"multivalue_answer_routing_policy": null, "multivalue_answer_routing_policy": null,
@ -99,7 +99,7 @@
"records": [ "records": [
"google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE" "google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"
], ],
"set_identifier": null, "set_identifier": "",
"ttl": 60, "ttl": 60,
"type": "TXT", "type": "TXT",
"weighted_routing_policy": [], "weighted_routing_policy": [],
@ -2315,28 +2315,27 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2019-12-29T07:14:45.261168Z", "created_on": "2019-12-29T07:28:42.895085Z",
"data": null, "data": null,
"hostname": "temperature.home.ahoskingit.com", "hostname": "temperatures.home.ahoskingit.com",
"id": "e8c364f904216dc682dc69c12a676d80", "id": "561ce014b8e1b61388d875266980bab4",
"metadata": { "metadata": {
"auto_added": "false", "auto_added": "false",
"managed_by_apps": "false", "managed_by_apps": "false",
"managed_by_argo_tunnel": "false" "managed_by_argo_tunnel": "false"
}, },
"modified_on": "2019-12-29T07:14:45.261168Z", "modified_on": "2019-12-29T07:28:42.895085Z",
"name": "temperature.home", "name": "temperatures.home",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,
"ttl": 1, "ttl": 1,
"type": "CNAME", "type": "A",
"value": "home.ahoskingit.com", "value": "70.27.17.5",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [ "dependencies": [
"cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"
] ]
} }

File diff suppressed because it is too large Load Diff