Adds smart subdomain to home.ahoskingit.com

This commit is contained in:
Alexander Hosking 2020-01-05 00:37:30 -05:00
parent 6a8f8ca43a
commit 7b62993819
4 changed files with 88 additions and 18 deletions

View File

@ -55,12 +55,20 @@ resource "cloudflare_record" "home_ahoskingit" {
proxied = "true" proxied = "true"
} }
### Home Subdomains ### ### Home Subdomains ###
resource "cloudflare_record" "smart_home_ahoskingit" {
zone_id = cloudflare_zone.ahoskingit_com.id
name = "smart.home"
type = "CNAME"
value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone])
proxied = "true"
}
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 = "temperatures.home" name = "temperatures.home"
type = "A" type = "CNAME"
# 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 # 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": 73, "serial": 78,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@ -1727,6 +1727,42 @@
} }
] ]
}, },
{
"mode": "managed",
"type": "cloudflare_record",
"name": "smart_home_ahoskingit",
"provider": "provider.cloudflare",
"instances": [
{
"schema_version": 1,
"attributes": {
"created_on": "2020-01-05T05:35:30.842024Z",
"data": null,
"hostname": "smart.home.ahoskingit.com",
"id": "365d7ff78af893befff26e2aa0af417c",
"metadata": {
"auto_added": "false",
"managed_by_apps": "false",
"managed_by_argo_tunnel": "false"
},
"modified_on": "2020-01-05T05:35:30.842024Z",
"name": "smart.home",
"priority": 0,
"proxiable": true,
"proxied": true,
"ttl": 1,
"type": "CNAME",
"value": "home.ahoskingit.com",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f"
},
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [
"cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com"
]
}
]
},
{ {
"mode": "managed", "mode": "managed",
"type": "cloudflare_record", "type": "cloudflare_record",
@ -2315,27 +2351,28 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2019-12-29T07:28:42.895085Z", "created_on": "2020-01-05T05:34:40.383457Z",
"data": null, "data": {},
"hostname": "temperatures.home.ahoskingit.com", "hostname": "temperatures.home.ahoskingit.com",
"id": "561ce014b8e1b61388d875266980bab4", "id": "d8d0dbe76b192ed7536b5772de2d14db",
"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:28:42.895085Z", "modified_on": "2020-01-05T05:34:40.383457Z",
"name": "temperatures.home", "name": "temperatures.home",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,
"ttl": 1, "ttl": 1,
"type": "A", "type": "CNAME",
"value": "70.27.17.5", "value": "home.ahoskingit.com",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
"dependencies": [ "dependencies": [
"cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"
] ]
} }

View File

@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "0.12.18", "terraform_version": "0.12.18",
"serial": 70, "serial": 76,
"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,17 +2315,17 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2019-12-29T07:14:45.261168Z", "created_on": "2020-01-05T05:34:40.383457Z",
"data": null, "data": null,
"hostname": "temperature.home.ahoskingit.com", "hostname": "temperatures.home.ahoskingit.com",
"id": "e8c364f904216dc682dc69c12a676d80", "id": "d8d0dbe76b192ed7536b5772de2d14db",
"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": "2020-01-05T05:34:40.383457Z",
"name": "temperature.home", "name": "temperatures.home",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,

View File

@ -0,0 +1,25 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"workbench.colorCustomizations": {
"activityBar.background": "#ef7853",
"activityBar.activeBorder": "#8af4a3",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#8af4a3",
"activityBarBadge.foreground": "#15202b",
"titleBar.activeBackground": "#eb5424",
"titleBar.inactiveBackground": "#eb542499",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveForeground": "#e7e7e799",
"statusBar.background": "#eb5424",
"statusBarItem.hoverBackground": "#ef7853",
"statusBar.foreground": "#e7e7e7"
},
"peacock.color": "#eb5424"
}
}