{"id":21864814,"url":"https://github.com/xavier2p/infra-as-code","last_synced_at":"2026-04-09T01:32:51.686Z","repository":{"id":172262226,"uuid":"643358886","full_name":"Xavier2p/infra-as-code","owner":"Xavier2p","description":"/forge - Infrastructure as Code","archived":false,"fork":false,"pushed_at":"2023-09-11T13:38:07.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-03T14:09:36.218Z","etag":null,"topics":["ansible","docker","forge","infra-as-code","terraform"],"latest_commit_sha":null,"homepage":"https://xavier2p.github.io/wiki","language":"HCL","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xavier2p.png","metadata":{"files":{"readme":".github/README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-05-20T22:50:19.000Z","updated_at":"2023-09-13T10:33:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"dac01563-cfe0-4a64-be1f-e315526a1828","html_url":"https://github.com/Xavier2p/infra-as-code","commit_stats":null,"previous_names":["xavier2p/infra-as-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Xavier2p/infra-as-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xavier2p%2Finfra-as-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xavier2p%2Finfra-as-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xavier2p%2Finfra-as-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xavier2p%2Finfra-as-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xavier2p","download_url":"https://codeload.github.com/Xavier2p/infra-as-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xavier2p%2Finfra-as-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["ansible","docker","forge","infra-as-code","terraform"],"created_at":"2024-11-28T04:12:34.261Z","updated_at":"2026-04-09T01:32:51.658Z","avatar_url":"https://github.com/Xavier2p.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `/forge` - Infrastructure as Code\n\n[![GitHub top language](https://img.shields.io/github/languages/top/xavier2p/infra-as-code?style=for-the-badge\u0026logo=terraform\u0026label=terraform\u0026color=%237B42BC)](https://terraform.io/)\n![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/xavier2p/infra-as-code/ci.yml?style=for-the-badge\u0026logo=github-actions\u0026label=validation)\n[![Website](https://img.shields.io/website?up_message=UP\u0026down_message=DOWN\u0026url=https%3A%2F%2Fxavier2p.github.io%2Fwiki\u0026style=for-the-badge\u0026logo=mdbook\u0026label=docs)\n](https://xavier2p.github.io/wiki)\n[![GitHub](https://img.shields.io/github/license/xavier2p/infra-as-code?style=for-the-badge\u0026logo=github\u0026color=yellow)](../LICENSE.md)\n\n\u003e This repository contains the code of `/forge`, my personal infrastructure.\n\n## Hosts\n\n+ [`scariff`](../hosts/scariff): My main server, a Raspberry Pi 4.\n+ [`exegol`](../hosts/exegol): My laptop, a MacBook Air M1.\n+ [`eadu`](../hosts/eadu): A simple Debian VM, used for testing.\n+ [`mandalore`](../hosts/mandalore): My development server, a Dell PowerEdge R710 (upcoming...).\n\n## Tools\n\n+ My servers run on [`NixOS`](https://github.com/Xavier2p/system).\n+ I use [`Docker`](https://www.docker.com/) to run my services.\n+ For configuration, I use [`Ansible`](https://www.ansible.com/).\n+ For deployment, I use [`Terraform`](https://www.terraform.io/).\n\n## Structure\n\n```bash\n./forge\n├── ansible             # Ansible configuration, pre-deployment\n├── hosts               # Hosts configuration\n│   ├── common          # Common configuration for all hosts\n│   ├── exegol\n│   ├── eadu\n│   └── scariff\n├── stacks              # Stacks of services\n│   ├── admin\n│   ├── cloud\n│   ├── monitoring\n│   ├── media\n│   └── services\n├── hosts.tf            # Hosts configuration\n├── main.tf             # Entry point\n├── modules             # Terraform modules\n├── providers.tf\n├── outputs.tf\n├── variables.tf\n└── forge.tfvars        # Private variables\n```\n\n## Deployment\n\n### #1 Clone repository\n\n```bash\ngit clone https://github.com/Xavier2p/infra-as-code.git \u0026\u0026 cd infra-as-code\n```\n\n### #2 Pre-deploy configuration (using Ansible)\n\n```bash\nansible-playbook -i ansible/hosts.yml -u \u003cUSER\u003e -b ansible/playbook.yml\n```\n\n### #3 Deploy infrastructure (using Terraform)\n\n```bash\nterraform init\nterraform apply\n```\n\nYou can use the `-target=module.\u003cmodule_name\u003e` option to deploy only a specific module or a specific host.\n\n## License - MIT\n\n```txt\nMIT License\n\nCopyright (c) 2023 Xavier2p\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavier2p%2Finfra-as-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavier2p%2Finfra-as-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavier2p%2Finfra-as-code/lists"}