/odon

Mastodon - Fediverse

Primary LanguageHCLCreative Commons Zero v1.0 UniversalCC0-1.0

Fediverse - odon


Goto the Source! Join Mastodon link

image

image

Time Vault @Dec 21, 2022 Mastodon Is Hurtling Toward a Tipping Point link
Time Vault @Dec 22, 2022 Mastodon Twitter Engineeer is all in link

Mastodon - Infrastructure as Code

Terragrunt

README.md

Root Level Admin Account ./ 51167

  • terragrunt-README.md
  • terragrunt-region.hcl
  • terragrunt-hcl
  • ./w3point0.com Application Level Account 71304

The Jorney - Production Mini-Runner

Docker Compose link

The Journey - Non production Lab

Digital Ocean Registry link

Ansible Vault link

All Digital Ocean Terraform Articles link

How To use Terraform with Digital Ocean link

Note: Insure you have the public loaded in Digital Ocean, with the same name as what is defined in provider.tf
cd /workspaces/odon/terraform/nginx-example
source ../../export-env.sh
source ../../export-env-encrypt.sh 
terraform plan   -var "do_token=${DO_PAT}"   -var "pvt_key=${pvt_key}"
terraform apply  -var "do_token=${DO_PAT}"   -var "pvt_key=${pvt_key}"
terraform destroy -var "do_token=${DO_PAT}"   -var "pvt_key=${pvt_key}"


How To Structure a Terraform Project link

cd terraform/structure-example
source ../../export-env-encrypt.sh
source ../../export-env.sh
terraform plan -var "do_token=${DO_PAT}" -var "domain_name=${DO_DOMAIN_NAME}" -var "private_key=${DO_PRIVATE_KEY}"
terraform apply -var "do_token=${DO_PAT}" -var "domain_name=${DO_DOMAIN_NAME}" -var "private_key=${DO_PRIVATE_KEY}"

terraform show | grep "ipv4"
nslookup -type=a sipodon.com | grep "Address" | tail -1


resource state workspace modules

Simple

.
└── tf/
    ├── versions.tf
    ├── variables.tf
    ├── provider.tf
    ├── droplets.tf
    ├── dns.tf
    ├── data-sources.tf
    └── external/
        └── name-generator.py

Digital Ocean Terraform Provider link

Digital Ocean Market Place - Mastodon link