terraform: add state to version control

This commit is contained in:
teutat3s 2023-05-13 17:01:21 +02:00
parent 012b25e5d4
commit 980c215c97
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1
3 changed files with 327 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,6 +1,5 @@
.direnv
.terraform
terraform.tfstate*
*.plan
result
.env

View file

View file

@ -0,0 +1,327 @@
{
"version": 4,
"terraform_version": "1.2.3",
"serial": 15,
"lineage": "0771640c-2fb8-2e08-c29e-2151710cb1dd",
"outputs": {},
"resources": [
{
"mode": "data",
"type": "triton_image",
"name": "nixos",
"provider": "provider[\"registry.terraform.io/joyent/triton\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"id": "4c0be8bc-cbc9-660f-9736-c6a0fa0a894c",
"most_recent": true,
"name": "nixos-22",
"os": null,
"owner": null,
"public": null,
"state": null,
"type": null,
"version": null
},
"sensitive_attributes": []
}
]
},
{
"mode": "data",
"type": "triton_network",
"name": "private",
"provider": "provider[\"registry.terraform.io/joyent/triton\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"fabric": true,
"id": "3a8563cb-2930-49b2-954d-d81e0f68ce23",
"name": "My-Fabric-Network",
"public": false
},
"sensitive_attributes": []
}
]
},
{
"mode": "data",
"type": "triton_network",
"name": "public",
"provider": "provider[\"registry.terraform.io/joyent/triton\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"fabric": false,
"id": "b787ced8-84fd-4303-a320-53647979aa93",
"name": "public_ip_pool",
"public": true
},
"sensitive_attributes": []
}
]
},
{
"mode": "managed",
"type": "namecheap_domain_records",
"name": "pub-solar",
"provider": "provider[\"registry.terraform.io/namecheap/namecheap\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"domain": "pub.solar",
"email_type": "MX",
"id": "pub.solar",
"mode": "OVERWRITE",
"nameservers": null,
"record": [
{
"address": "85.88.23.19",
"hostname": "mail",
"mx_pref": 10,
"ttl": 1799,
"type": "A"
},
{
"address": "95.217.225.160",
"hostname": "cache",
"mx_pref": 10,
"ttl": 1799,
"type": "A"
},
{
"address": "95.217.225.160",
"hostname": "collabora",
"mx_pref": 10,
"ttl": 1799,
"type": "A"
},
{
"address": "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"hostname": "auth",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"hostname": "git",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"hostname": "infra-1",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "infra-1.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"hostname": "vpn",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "mail.greenbaum.cloud",
"hostname": "@",
"mx_pref": 0,
"ttl": 1799,
"type": "MX"
},
{
"address": "mail.pub.solar.",
"hostname": "imap",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "mail.pub.solar.",
"hostname": "smtp",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "mastodon-proxy.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "files",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "mastodon-proxy.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "mastodon",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "chat",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "dimension",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "element",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "matrix.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "matrix",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "nc-web.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone.",
"hostname": "cloud",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
},
{
"address": "v=DMARC1; p=reject;",
"hostname": "_dmarc",
"mx_pref": 10,
"ttl": 1799,
"type": "TXT"
},
{
"address": "v=spf1 a:mail.greenbaum.cloud ?all",
"hostname": "@",
"mx_pref": 10,
"ttl": 1799,
"type": "TXT"
},
{
"address": "www.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "@",
"mx_pref": 10,
"ttl": 300,
"type": "ALIAS"
},
{
"address": "www.svc.e5756d08-36fd-424b-f8bc-acdb92ca7b82.cgn-1.greenbaum.zone.",
"hostname": "www",
"mx_pref": 10,
"ttl": 1799,
"type": "CNAME"
}
]
},
"sensitive_attributes": [],
"private": "bnVsbA=="
}
]
},
{
"mode": "managed",
"type": "triton_machine",
"name": "pub-solar-infra-vm-1",
"provider": "provider[\"registry.terraform.io/joyent/triton\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"administrator_pw": "",
"affinity": null,
"cloud_config": "",
"cns": [
{
"disable": false,
"services": [
"infra-1"
]
}
],
"compute_node": "1cc79e74-9554-e611-9234-0894ef22d041",
"created": null,
"dataset": "4c0be8bc-cbc9-660f-9736-c6a0fa0a894c",
"delegate_dataset": false,
"deletion_protection_enabled": false,
"disk": 245760,
"domain_names": [
"d347ec63-9d45-43a6-a6ad-1b62740b65a3.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"pub-solar-infra-vm-1.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.greenbaum.zone",
"d347ec63-9d45-43a6-a6ad-1b62740b65a3.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone",
"my-fabric-network.d347ec63-9d45-43a6-a6ad-1b62740b65a3.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone",
"pub-solar-infra-vm-1.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone",
"my-fabric-network.pub-solar-infra-vm-1.inst.e5756d08-36fd-424b-f8bc-acdb92ca7b82.lev-1.int.greenbaum.zone"
],
"firewall_enabled": false,
"id": "d347ec63-9d45-43a6-a6ad-1b62740b65a3",
"image": "4c0be8bc-cbc9-660f-9736-c6a0fa0a894c",
"ips": [
"80.71.153.210",
"192.168.128.57"
],
"locality": [],
"memory": 16384,
"metadata": null,
"name": "pub-solar-infra-vm-1",
"networks": [
"b787ced8-84fd-4303-a320-53647979aa93",
"3a8563cb-2930-49b2-954d-d81e0f68ce23"
],
"nic": [
{
"gateway": "192.168.128.1",
"ip": "192.168.128.57",
"mac": "90:b8:d0:88:8f:82",
"netmask": "255.255.252.0",
"network": "3a8563cb-2930-49b2-954d-d81e0f68ce23",
"primary": false,
"state": "stopped"
},
{
"gateway": "80.71.153.1",
"ip": "80.71.153.210",
"mac": "90:b8:d0:26:a4:bc",
"netmask": "255.255.255.0",
"network": "cf3c73c2-7e07-4334-a1aa-c06f9e41ba48",
"primary": true,
"state": "running"
}
],
"package": "bhyve-huge",
"primaryip": "80.71.153.210",
"root_authorized_keys": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFro/k4Mgqyh8yV/7Zwjc0dv60ZM7bROBU9JNd99P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ub2L+Sy1iteupv/AGudgoVNp2GebqJy1cxQ74mgnL8eWMlaA9jZlKQ1xFFhgtolCsoAKTE9AE8X0egvmEM18fEUR3EWWchmX4MXUhUiOtwitkl4+EpSsp5rh/kIxcpQFz1dpBibroq6jDLKlrVou+2LppR8nMfFT2sqg3694Ltxz4CWMdAfitLax05ckKMAnzz+TgpXK5OyfQSBvl18Qu1SWITYa6AVNXQ7/ovWBDIUfg25GWouzWqkSUpLdCVIcXPe2X7g6X1QsHXnnhaMAhvYH54GZ4wU2kBwIJ6KvplfZdbJ09KAltPVt08evafb hendriksokolowski@hsokolowski-pc\nssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII/58A18EtxnLYHu63c/+AyTSkJQSso/VVdHUFGp1CTk cardno:FFFE34353135\necdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOLcgrSOP0EB2PSqMrZWwUeZAME9ffRbUq6CgaGAuIehqVWHWUnHb4LvP6hOiJkpWxwUC/12ml15I90zczqVXig= b12f Yubi Main\necdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEST9eyAY3nzGYNnqDYfWHu+89LZsOjyKHMqCFvtP7vrgB7F7JbbECjdjAXEOfPDSCVwtMMpq8JJXeRMjpsD0rw= b12f Yubi Backup\nssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC/k0RRQgnvCHFtIEFnvCQJ5JgznuscJwhrDI3g5hvgBBeGD2UW/ZnR/nDgTE6Gbmvnn+0LRMEL1jtmYg7BUIE5ES2WAvgLYWEHMjaQlrqG68lGWTMKJyArhY9xR6kTANsBQ4vbGkDuM0Ww75lO4jYk6IHs5RtW27XHJIlTAzLYV1ux1J+EJ8Adfboa/+EK5oynsLgIWf8mYLo8RCQYc4kGZSbBPVFJ9gyzX7S6IQstPPgITLj1+RPzR9SyA58iPQt8/J2RFIPw7sN5LSlmg0CYGSU3oI2BZBPkxT7+zbrIvB0xFBiaUqSI2H/XlAMJReMVoAkuQA9KS1bz36EZirBfl5UniZbi8XNxwxriIRtfgnaU9zV8OZdBTvXUNyahyuof9RLRuR9HX+HJtPcDKJCooePzxbeOf0jNg+3efjMNOn9bd5T0OM3dAYJFwKWjudwsWmuVm2etf1evjOFn69EXXNU6Vu/jlZFIGIq0FRQNxQPdTJs61s9n7meqUXmtHZk= root@nougat\necdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHx4A8rLYmFgTOp1fDGbbONN8SOT0l5wWrUSYFUcVzMPTyfdT23ZVIdVD5yZCySgi/7PSh5mVmyLIZVIXlNrZJg= @b12f Yubi Main\n",
"tags": null,
"timeouts": null,
"type": "virtualmachine",
"updated": null,
"user_data": "",
"user_script": "",
"volume": []
},
"sensitive_attributes": [],
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6NjAwMDAwMDAwMDAwLCJyZWFkIjozMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9fQ==",
"dependencies": [
"data.triton_image.nixos",
"data.triton_network.private",
"data.triton_network.public"
]
}
]
}
]
}