{"id":19716370,"url":"https://github.com/computestacks/terraform-cs-upcloud","last_synced_at":"2025-02-27T16:55:57.542Z","repository":{"id":152867872,"uuid":"321278752","full_name":"ComputeStacks/terraform-cs-upcloud","owner":"ComputeStacks","description":"Deploy ComputeStacks on UpCloud","archived":false,"fork":false,"pushed_at":"2023-07-08T20:37:05.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T15:23:07.872Z","etag":null,"topics":["terraform","upcloud"],"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":"2020-12-14T08:18:07.000Z","updated_at":"2022-07-18T16:01:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"1886a1b9-aa52-429b-b19b-b79cdbfc2470","html_url":"https://github.com/ComputeStacks/terraform-cs-upcloud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-upcloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-upcloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-upcloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ComputeStacks%2Fterraform-cs-upcloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ComputeStacks","download_url":"https://codeload.github.com/ComputeStacks/terraform-cs-upcloud/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241037146,"owners_count":19898289,"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","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":["terraform","upcloud"],"created_at":"2024-11-11T22:41:54.508Z","updated_at":"2025-02-27T16:55:57.537Z","avatar_url":"https://github.com/ComputeStacks.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying ComputeStacks on UpCloud\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 regions\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 running: `tail -f /var/log/syslog`\n\nYou can also confirm the process has completed by ensuring `which ansible` is successful.\n\n## API Notes\n\nUse these to determine values for the terraform configuration file.\n\n* Available plans: `curl -u $UPCLOUD_USERNAME:$UPCLOUD_PASSWORD https://api.upcloud.com/1.3/plan`\n* Available templates: `curl -u $UPCLOUD_USERNAME:$UPCLOUD_PASSWORD https://api.upcloud.com/1.3/storage/template`\n* Available Zones: `curl -u $UPCLOUD_USERNAME:$UPCLOUD_PASSWORD https://api.upcloud.com/1.3/zone`\n\n### Tip: Direnv\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 upcloud credentials, and;\n  3) `direnv allow .`. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fterraform-cs-upcloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputestacks%2Fterraform-cs-upcloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputestacks%2Fterraform-cs-upcloud/lists"}