{"id":51011273,"url":"https://github.com/afcms/hexagone_cloud_computing","last_synced_at":"2026-06-21T03:01:42.808Z","repository":{"id":365973078,"uuid":"1269900892","full_name":"AFCMS/Hexagone_Cloud_Computing","owner":"AFCMS","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-19T17:41:29.000Z","size":146,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-19T18:25:55.715Z","etag":null,"topics":["kvm","libvirt","opentofu","studies"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":false,"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/AFCMS.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-15T07:48:58.000Z","updated_at":"2026-06-19T17:41:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/AFCMS/Hexagone_Cloud_Computing","commit_stats":null,"previous_names":["afcms/hexagone_cloud_computing"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AFCMS/Hexagone_Cloud_Computing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2FHexagone_Cloud_Computing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2FHexagone_Cloud_Computing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2FHexagone_Cloud_Computing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2FHexagone_Cloud_Computing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AFCMS","download_url":"https://codeload.github.com/AFCMS/Hexagone_Cloud_Computing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2FHexagone_Cloud_Computing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34592057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"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":["kvm","libvirt","opentofu","studies"],"created_at":"2026-06-21T03:01:42.083Z","updated_at":"2026-06-21T03:01:42.802Z","avatar_url":"https://github.com/AFCMS.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hexagone - Cloud Computing\n\nAutomated OpenTofu/libvirt deployment of a containerized Forgejo application.\n\n[ASSIGNMENT REPORT](./RAPPORT.md)\n\n## Architecture\n\nThe lab creates three Ubuntu VMs on a libvirt NAT network. Each service runs in a Docker container deployed by cloud-init.\n\n| VM         | IP               | Role            | Container  |\n| ---------- | ---------------- | --------------- | ---------- |\n| `cc-proxy` | `192.168.101.10` | Reverse proxy   | Traefik    |\n| `cc-app`   | `192.168.101.20` | Web application | Forgejo    |\n| `cc-db`    | `192.168.101.30` | Database        | PostgreSQL |\n\nForgejo is exposed through Traefik at:\n\n```text\nhttp://forgejo.cc.local/\n```\n\n## Local DNS\n\nAdd this line to `/etc/hosts` on the host machine:\n\n```text\n192.168.101.10 forgejo.cc.local\n```\n\nWithout editing `/etc/hosts`, you can test through the proxy IP with an explicit Host header:\n\n```shell\ncurl -H 'Host: forgejo.cc.local' http://192.168.101.10/\n```\n\n## Deployment\n\nApply the infrastructure:\n\n```shell\ntofu apply\n```\n\nDestroy the infrastructure:\n\n```shell\ntofu destroy\n```\n\n## Local libvirt notes\n\nThis project defaults to Fedora's modular libvirt socket:\n\n```text\nqemu:///system?socket=/var/run/libvirt/virtqemud-sock\n```\n\nIf your host uses the legacy socket, override it:\n\n```shell\nTF_VAR_libvirt_uri='qemu:///system' tofu apply\n```\n\n## Tests\n\nAfter `tofu apply`, wait a few minutes for cloud-init to install Docker and pull the container images.\n\nWith `/etc/hosts` configured:\n\n```shell\ncurl -fsS -I http://forgejo.cc.local/\n```\n\nWithout `/etc/hosts` configured:\n\n```shell\ncurl -fsS -H 'Host: forgejo.cc.local' http://192.168.101.10/\n```\n\nExpected result:\n\n- Traefik routes HTTP requests to the Forgejo container.\n- Forgejo can connect to PostgreSQL.\n- The Forgejo initial setup page is available in the browser.\n\nOpen `http://forgejo.cc.local/` and create the initial Forgejo administrator account through the setup page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafcms%2Fhexagone_cloud_computing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafcms%2Fhexagone_cloud_computing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafcms%2Fhexagone_cloud_computing/lists"}