{"id":20159843,"url":"https://github.com/diogok/systemd-nomad","last_synced_at":"2025-04-09T23:40:50.139Z","repository":{"id":40698278,"uuid":"159557799","full_name":"diogok/systemd-nomad","owner":"diogok","description":"Docker, Consul and Nomad (and soon Vault) on systemd using cloud-init.","archived":false,"fork":false,"pushed_at":"2023-01-28T10:14:17.000Z","size":17,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T17:50:10.890Z","etag":null,"topics":["cloud-init","consul","docker","multipass","nomad","systemd","vault"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"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/diogok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-28T20:01:35.000Z","updated_at":"2025-02-06T09:23:35.000Z","dependencies_parsed_at":"2023-02-15T15:31:43.323Z","dependency_job_id":null,"html_url":"https://github.com/diogok/systemd-nomad","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/diogok%2Fsystemd-nomad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fsystemd-nomad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fsystemd-nomad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diogok%2Fsystemd-nomad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diogok","download_url":"https://codeload.github.com/diogok/systemd-nomad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131468,"owners_count":21052819,"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":["cloud-init","consul","docker","multipass","nomad","systemd","vault"],"created_at":"2024-11-14T00:10:38.721Z","updated_at":"2025-04-09T23:40:50.104Z","avatar_url":"https://github.com/diogok.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Systemd Hashcorp Nomad\n\nScripts and config to provision Hashistack on systemd systems using cloud-init.\n\nIncludes:\n\n- docker\n- cni plugins\n- consul\n- nomad\n\nIt can be used as a reference, as a terraform module (maybe...) or to generate and use cloud-init using terraform.\n\nTo do:\n\n- vault\n\n## Cloud-init\n\n### Testing local\n\nYou can test using [multipass](https://multipass.run/) and [terraform](https://www.terraform.io/).\n\nTo launch server:\n\n```\nmake launch-server\n```\n\nTo launch client:\n\n```\nmake launch-client\n```\n\nTo see IPs and machines:\n\n```\nmake list\n```\n\n## More information\n\n- We setup max_map_count and max open files (fs.file-max)\n- We create a docker network called just `network`\n- The docker internal network  will be 10.2.2.0/24\n- The docker network will have host exposed to the containers at 10.2.2.1\n- Connect is enabled on consul\n- The machine default DNS is set as rescursive DNS on consul\n- Nomad has prometheus metrics endpoint enabled\n- Nomad have docker privilieged and raw exec enabled\n- Nomad is connect enabled\n- Set client or server vars accordingly\n- Set bootstrap_expect var only on first manager\n- It is all managed on systemd\n- Use \"join\" var to set a seed node ip or cloud auto join string\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fsystemd-nomad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiogok%2Fsystemd-nomad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiogok%2Fsystemd-nomad/lists"}