{"id":19716371,"url":"https://github.com/computestacks/terraform-cs-digitalocean","last_synced_at":"2025-10-07T13:41:07.688Z","repository":{"id":152867869,"uuid":"339633869","full_name":"ComputeStacks/terraform-cs-digitalocean","owner":"ComputeStacks","description":"Deploy ComputeStacks on DigitalOcean","archived":false,"fork":false,"pushed_at":"2023-07-08T20:38:14.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T22:04:23.741Z","etag":null,"topics":["digitalocean","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ComputeStacks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-17T06:40:29.000Z","updated_at":"2023-07-31T12:21:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"3a85c1f9-4808-4608-a082-e48c3a92d794","html_url":"https://github.com/ComputeStacks/terraform-cs-digitalocean","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ComputeStacks/terraform-cs-digitalocean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-digitalocean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-digitalocean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-digitalocean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-digitalocean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComputeStacks","download_url":"https://codeload.github.com/ComputeStacks/terraform-cs-digitalocean/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-digitalocean/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786258,"owners_count":26045586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digitalocean","terraform"],"created_at":"2024-11-11T22:41:55.088Z","updated_at":"2025-10-07T13:41:07.662Z","avatar_url":"https://github.com/ComputeStacks.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying ComputeStacks on Digital Ocean\n\nCreate a `terraform.tfvars` file and adjust the settings appropriately. Specifically, you will:\n\n* Choose the appropriate package for your servers\n  * _NOTE:_ The packages set as the default in the `terraform.tfvars.sample` meet our minimum requirements. We do not recommend going below those, as that may prevent ComputeStacks from booting.\n* Specify how many nodes you want (we recommend 1, 3, or 5). If you need more resources, consider increasing the plan size, or creating multiple availability zones.\n* Choose your region\n\nAdditionally, please ensure the DigitalOcean project is created prior to running this package.\n\nCopy `providers.tf.sample` to `providers.tf` and adjust.\n\n## (Optional) Auto-configure DNS\n\nYou may wish to automatically configure your DNS records by using a terraform dns provider. Included here is an example file using CloudFlare, `dns_cloudflare.tf.sample`. You may copy that to `dns_cloudflare.tf` and adjust accordingly. You will also need to adjust your `providers.tf` file to include the CloudFlare modules.\n\nBy default, you will see the required DNS settings under `result/`.\n\n## Setup Terraform\n\nBefore proceeding, ensure you have [terraform installed](https://learn.hashicorp.com/tutorials/terraform/install-cli), and then run:\n\n```bash\nterraform init\n```\n\n## Running Terraform\n\n```bash\nterraform apply\n```\n\nAfter terraform runs, you will see 2 newly created files under the `result/` directory.\n\n1. `dns_settings.txt` | Your DNS settings, which must be applied prior to running the ansible package.\n2. `inventory.yml` | You will need this later when configuring Ansible.\n\n## Before Running Ansible\n\nDuring the initial boot process of your new droplets, ansible will be installed. This can take a few minutes to complete. \n\nPlease ensure that this process has completed _before_ running the ansible package. You can verify that this is completed by: `tail -f /var/log/syslog`\n\nFor either distribution, you're waiting to see Ansible finish installing. This will be the last step.\n\nYou can also confirm the process has completed by ensuring `which ansible` is successful.\n\n## Find Digital Ocean Resources\n\nYou can use [direnv](https://direnv.net/) to safely store environmental variables locally in this directory.\nOnce [direnv](https://direnv.net/) is installed:\n\n  1) `mv .envrc.sample .envrc`\n  2) add your digital ocean token, and;\n  3) `direnv allow .`.\n\nWe also recommend installing [jq](https://stedolan.github.io/jq/) to aid in the presentation of the json data.\n\n### List available plans\n\n```\ncurl -X GET -H \"Content-Type: application/json\" -H \"Authorization: Bearer $DO_TOKEN\" \"https://api.digitalocean.com/v2/sizes\" | jq\n```\n\n### List all regions\n\n```\ncurl -X GET -H \"Content-Type: application/json\" -H \"Authorization: Bearer $DO_TOKEN\" \"https://api.digitalocean.com/v2/regions\" | jq\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fterraform-cs-digitalocean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputestacks%2Fterraform-cs-digitalocean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fterraform-cs-digitalocean/lists"}