{"id":22819493,"url":"https://github.com/skorupcia/digitalocean_highly_available","last_synced_at":"2025-08-18T07:10:38.156Z","repository":{"id":216185751,"uuid":"740675305","full_name":"skorupcia/DigitalOcean_Highly_Available","owner":"skorupcia","description":"DigitalOcean Highly Available Infrastructure with Centos-7 ","archived":false,"fork":false,"pushed_at":"2024-02-25T15:29:19.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T23:13:34.331Z","etag":null,"topics":["ansible","centos","digitalocean","highly-available"],"latest_commit_sha":null,"homepage":"https://github.com/geerlingguy/ansible-for-devops","language":"Jinja","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/skorupcia.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}},"created_at":"2024-01-08T20:44:37.000Z","updated_at":"2024-01-18T20:04:14.000Z","dependencies_parsed_at":"2025-02-07T10:45:46.135Z","dependency_job_id":null,"html_url":"https://github.com/skorupcia/DigitalOcean_Highly_Available","commit_stats":null,"previous_names":["skorupcia/digitalocean_highly_available"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skorupcia/DigitalOcean_Highly_Available","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorupcia%2FDigitalOcean_Highly_Available","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorupcia%2FDigitalOcean_Highly_Available/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorupcia%2FDigitalOcean_Highly_Available/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorupcia%2FDigitalOcean_Highly_Available/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skorupcia","download_url":"https://codeload.github.com/skorupcia/DigitalOcean_Highly_Available/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorupcia%2FDigitalOcean_Highly_Available/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266665780,"owners_count":23964971,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["ansible","centos","digitalocean","highly-available"],"created_at":"2024-12-12T15:12:37.869Z","updated_at":"2025-07-23T11:04:24.230Z","avatar_url":"https://github.com/skorupcia.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DigitalOcean Highly Available Infrastructure Centos-7 \n\n[![CI](https://github.com/skorupcia/DigitalOcean_Highly_Available/actions/workflows/ci.yml/badge.svg)](https://github.com/skorupcia/DigitalOcean_Highly_Available/actions/workflows/ci.yml)\n\n## Specifications\n\nmacOS: Sonoma 14.2.1\n\nCentos: centos-7-x64\n\nCompared to Geerlingguy files i have decided to create a script that writes ip's and assign them to groups. Unfortunately it leads to additional commands to execute. (Since I wasn't able to get hosts to inventory groups)\n\n## INSTRUCTIONS\n\n1. Add your machine SSH to DigitalOcean account\n\n2. Create API token and add to your DigitalOcean project\n\n3. Update vars files to your personal preferences\n\n   a) Update u_token in keys.yml (api_token)\n   \n   b) Update u_ssh in keys.yml (ssh fingerprint)\n\n   c) Update 'api_token' in the end of the generate_hosts.py script\n\n   d) Update file location of 'generate_hosts.py' in provisioners/digitalocean.yml\n\n## RUN INSTRUCTIONS\n\n1. Run required roles:\n\n      ansible-galaxy install -r requirements.yml\n   \n2. Run digitalocean.yml to create droplets and run generate_hosts.py:\n\n      ansible-playbook provisioners/digitalocean.yml\n\n      #### When vault password applied:\n\n      ansible-playbook provisioners/digitalocean.yml --ask-vault-pass\n\n4. Run playbooks with provision.yml file:\n\n      ansible-playbook -i hosts.ini provision.yml\n\n5. Check if infrastructure is working simply connecting to varnish ip server:\n\n      http://your_varnish_ip\n\n6. For additional safety of your ssh and api key run:\n\n      ansible-vault encrypt provisioners/keys.yml \n\n\n## Droplet Delete\n\n   If you would like to delete droplets, simply switch state of \"Provision Digitalocean droplets\" from PRESENT to ABSENT and run playbook.\n\n## TroubleShooting\n\n1. MacOS - INSTALL CERTIFICATES if your Geerlingguy roles end up with certificate error:\n   \n    Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': \u003curlopen error [SSL:CERTIFICATE_VERIFY_FAILED]\n\n## Links \n\n   https://github.com/geerlingguy/ansible-for-devops/tree/master/lamp-infrastructure\n\n   2nd edition of Ansible for DevOps Jeff Geerling\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorupcia%2Fdigitalocean_highly_available","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskorupcia%2Fdigitalocean_highly_available","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorupcia%2Fdigitalocean_highly_available/lists"}