dns: init momo.koeln terraform files
commit
933b3cbfd4
|
@ -0,0 +1,2 @@
|
|||
.terraform
|
||||
*.plan
|
|
@ -0,0 +1,12 @@
|
|||
# Momo infra repo
|
||||
|
||||
### Manage DNS records with terraform
|
||||
```
|
||||
cd terraform
|
||||
terraform init
|
||||
# Make changes to dns.tf
|
||||
terraform plan -out "momo-infra.plan"
|
||||
terraform apply "momo-infra.plan"
|
||||
```
|
||||
|
||||
For more details, see the [terraform hosting.de provider docs](https://github.com/pub-solar/terraform-provider-hostingde)
|
|
@ -0,0 +1,10 @@
|
|||
# This file is maintained automatically by "terraform init".
|
||||
# Manual edits may be lost in future updates.
|
||||
|
||||
provider "registry.terraform.io/hostingde/hostingde" {
|
||||
version = "0.0.1"
|
||||
constraints = ">= 0.0.1"
|
||||
hashes = [
|
||||
"h1:wmGVYm1xat7GdwcToaoPm32PGxU4hwTvOgM+ydnx8ug=",
|
||||
]
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
resource "hostingde_zone" "momo" {
|
||||
name = "momo.koeln"
|
||||
type = "NATIVE"
|
||||
}
|
||||
|
||||
resource "hostingde_record" "mx" {
|
||||
zone_id = hostingde_zone.momo.id
|
||||
name = "list.momo.koeln"
|
||||
type = "MX"
|
||||
content = "list.pub.solar"
|
||||
}
|
||||
|
||||
resource "hostingde_record" "inv" {
|
||||
zone_id = hostingde_zone.momo.id
|
||||
name = "inv.momo.koeln"
|
||||
type = "A"
|
||||
content = "80.244.242.4"
|
||||
}
|
||||
|
||||
resource "hostingde_record" "website" {
|
||||
zone_id = hostingde_zone.momo.id
|
||||
name = "momo.koeln"
|
||||
type = "ALIAS"
|
||||
content = "garage-cluster.svc.aab0f485-69e7-467f-a86e-9b4d4a4875ad.lev-1.greenbaum.zone"
|
||||
}
|
||||
|
||||
resource "hostingde_record" "dmarc" {
|
||||
zone_id = hostingde_zone.momo.id
|
||||
name = "_dmarc.list.momo.koeln"
|
||||
type = "TXT"
|
||||
content = "\"v=DMARC1; p=reject;\""
|
||||
}
|
||||
|
||||
resource "hostingde_record" "spf" {
|
||||
zone_id = hostingde_zone.momo.id
|
||||
name = "list.momo.koeln"
|
||||
type = "TXT"
|
||||
content = "\"v=spf1 a:list.pub.solar ?all\""
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
hostingde = {
|
||||
source = "hostingde/hostingde"
|
||||
version = ">= 0.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Not recommended, use environment variables to configure the provider
|
||||
# See: https://github.com/pub-solar/terraform-provider-hostingde
|
||||
# HOSTINGDE_AUTH_TOKEN (required)
|
||||
# HOSTINGDE_ACCOUNT_ID (optional)
|
||||
#provider "hostingde" {
|
||||
# auth_token = "YOUR_API_TOKEN"
|
||||
# account_id = "YOUR_ACCOUNT_ID"
|
||||
#}
|
|
@ -0,0 +1,127 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.2.3",
|
||||
"serial": 9,
|
||||
"lineage": "e73f0951-6e58-4123-86be-e3184417e14b",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "dmarc",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "\"v=DMARC1; p=reject;\"",
|
||||
"id": "2302033qc5kq3mhpwnm",
|
||||
"name": "_dmarc.list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "TXT",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "inv",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "80.244.242.4",
|
||||
"id": "230227rkfw4pbpdrnig",
|
||||
"name": "inv.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "A",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "mx",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "list.pub.solar",
|
||||
"id": "230203bey7dvrinnj64",
|
||||
"name": "list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "MX",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "spf",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "\"v=spf1 a:list.pub.solar ?all\"",
|
||||
"id": "230203umtqzsrkdvgfk",
|
||||
"name": "list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "TXT",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "website",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "garage-cluster.svc.aab0f485-69e7-467f-a86e-9b4d4a4875ad.lev-1.greenbaum.zone",
|
||||
"id": "230314e75po27ihhpne",
|
||||
"name": "momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "ALIAS",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_zone",
|
||||
"name": "momo",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"email": "hostmaster@momo.koeln",
|
||||
"id": "221125ttqnsgky4kdia",
|
||||
"name": "momo.koeln",
|
||||
"type": "NATIVE"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,107 @@
|
|||
{
|
||||
"version": 4,
|
||||
"terraform_version": "1.2.3",
|
||||
"serial": 8,
|
||||
"lineage": "e73f0951-6e58-4123-86be-e3184417e14b",
|
||||
"outputs": {},
|
||||
"resources": [
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "dmarc",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "\"v=DMARC1; p=reject;\"",
|
||||
"id": "2302033qc5kq3mhpwnm",
|
||||
"name": "_dmarc.list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "TXT",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "mx",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "list.pub.solar",
|
||||
"id": "230203bey7dvrinnj64",
|
||||
"name": "list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "MX",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "spf",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "\"v=spf1 a:list.pub.solar ?all\"",
|
||||
"id": "230203umtqzsrkdvgfk",
|
||||
"name": "list.momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "TXT",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_record",
|
||||
"name": "website",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"content": "garage-cluster.svc.aab0f485-69e7-467f-a86e-9b4d4a4875ad.lev-1.greenbaum.zone",
|
||||
"id": "230314e75po27ihhpne",
|
||||
"name": "momo.koeln",
|
||||
"ttl": 3600,
|
||||
"type": "ALIAS",
|
||||
"zone_id": "221125ttqnsgky4kdia"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"mode": "managed",
|
||||
"type": "hostingde_zone",
|
||||
"name": "momo",
|
||||
"provider": "provider[\"registry.terraform.io/hostingde/hostingde\"]",
|
||||
"instances": [
|
||||
{
|
||||
"schema_version": 0,
|
||||
"attributes": {
|
||||
"email": "hostmaster@momo.koeln",
|
||||
"id": "221125ttqnsgky4kdia",
|
||||
"name": "momo.koeln",
|
||||
"type": "NATIVE"
|
||||
},
|
||||
"sensitive_attributes": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue