{"id":44317381,"url":"https://github.com/basher83/do_test","last_synced_at":"2026-02-11T05:15:28.060Z","repository":{"id":291150052,"uuid":"976736751","full_name":"basher83/do_test","owner":"basher83","description":"Repo to test TF and DO ","archived":false,"fork":false,"pushed_at":"2025-05-02T18:26:14.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T18:31:00.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/basher83.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2025-05-02T16:49:20.000Z","updated_at":"2025-05-02T18:26:17.000Z","dependencies_parsed_at":"2025-05-02T18:44:22.633Z","dependency_job_id":null,"html_url":"https://github.com/basher83/do_test","commit_stats":null,"previous_names":["basher83/do_test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/basher83/do_test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basher83%2Fdo_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basher83%2Fdo_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basher83%2Fdo_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basher83%2Fdo_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basher83","download_url":"https://codeload.github.com/basher83/do_test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basher83%2Fdo_test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29327168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T03:52:29.695Z","status":"ssl_error","status_checked_at":"2026-02-11T03:52:23.094Z","response_time":97,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-02-11T05:15:27.964Z","updated_at":"2026-02-11T05:15:28.055Z","avatar_url":"https://github.com/basher83.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# do_test\n\nAn example repo for use with env0. This repository contains a Terraform project to provision a DigitalOcean droplet with a secure firewall and initial configuration using cloud-init. Additionally, Ansible will be used to automate the configuration and management of a Jenkins docker image to the droplet.\n\n## Features\n\n- Deploys a single DigitalOcean droplet with Ubuntu 24.04.\n- Sets up a custom `ansible` user with SSH key authentication.\n- Installs Python 3, pip, and Docker via cloud-init.\n- Configures a firewall to allow only SSH (22), HTTP (80), HTTPS (443), and ICMP.\n- Automates the deployment and management of a Jenkins docker image.\n\n## Prerequisites\n\n- [Terraform](https://www.terraform.io/downloads.html) \u003e= 1.0\n- A [DigitalOcean API token](https://cloud.digitalocean.com/account/api/tokens)\n- Your SSH key added to your DigitalOcean account\n\n## Usage\n\n1. **Clone the repository:**\n    ```sh\n    git clone https://github.com/yourusername/do_test.git\n    cd do_test/terraform\n    ```\n\n2. **Set your variables:**\n    - Copy `terraform.tfvars.example` to `terraform.tfvars` (if present) or set variables via environment or CLI.\n    - Required variables:\n        - `do_token` (DigitalOcean API token)\n        - `ssh_fingerprint` (Your SSH key fingerprint from DigitalOcean)\n\n3. **Initialize Terraform:**\n    ```sh\n    terraform init\n    ```\n\n4. **Plan the deployment:**\n    ```sh\n    terraform plan\n    ```\n\n5. **Apply the configuration:**\n    ```sh\n    terraform apply\n    ```\n\n6. **Access your droplet:**\n    - Find the public IP in the Terraform output or DigitalOcean dashboard.\n    - SSH as the default user (e.g., `root` or `ubuntu`) or as `ansible`:\n      ```sh\n      ssh ansible@\u003cdroplet_ip\u003e\n      ```\n\n## File Structure\n\n```\nterraform/\n  main.tf           # Main Terraform configuration\n  variables.tf      # Input variables\n  outputs.tf        # Output values (e.g., droplet IP)\n  digitalocean.tftpl # cloud-init template for droplet provisioning\nREADME.md           # This file\n```\n\n## Notes\n\n- The public SSH key in the repo is for demonstration. Replace it with your own for real deployments.\n- For production, restrict SSH access in the firewall to your IP.\n- Destroy resources when done to avoid charges:\n    ```sh\n    terraform destroy\n    ```\n\n## Resources\n\n- [Terraform DigitalOcean Provider Docs](https://registry.terraform.io/providers/digitalocean/digitalocean/latest/docs)\n- [DigitalOcean Cloud-Init Docs](https://docs.digitalocean.com/products/droplets/how-to/use-cloud-init/\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasher83%2Fdo_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasher83%2Fdo_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasher83%2Fdo_test/lists"}