{"id":18465544,"url":"https://github.com/numtide/nixos-fleet-update-provider","last_synced_at":"2026-02-21T16:41:01.743Z","repository":{"id":250916071,"uuid":"833167955","full_name":"numtide/NixOS-Fleet-Update-Provider","owner":"numtide","description":"Terraform provider to update a homogeneous NixOS fleet configuration","archived":false,"fork":false,"pushed_at":"2024-07-31T14:04:24.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-04T08:53:07.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/numtide.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-07-24T13:40:24.000Z","updated_at":"2024-08-02T15:31:28.000Z","dependencies_parsed_at":"2025-04-01T18:48:53.536Z","dependency_job_id":"afe8b69b-48af-4091-af1e-83a3857c531a","html_url":"https://github.com/numtide/NixOS-Fleet-Update-Provider","commit_stats":null,"previous_names":["numtide/nixos-fleet-update-provider"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/numtide/NixOS-Fleet-Update-Provider","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtide%2FNixOS-Fleet-Update-Provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtide%2FNixOS-Fleet-Update-Provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtide%2FNixOS-Fleet-Update-Provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtide%2FNixOS-Fleet-Update-Provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtide","download_url":"https://codeload.github.com/numtide/NixOS-Fleet-Update-Provider/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtide%2FNixOS-Fleet-Update-Provider/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"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":[],"created_at":"2024-11-06T09:13:30.968Z","updated_at":"2026-02-21T16:41:01.725Z","avatar_url":"https://github.com/numtide.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NixOS Fleet Update Provider\n\n**status**: bleeding edge, very unstable, may eat your kittens.\n\nThis is a terraform provider aiming to manage updates for a homogeneous fleet of NixOS machines. By homogeneous, we mean machines sharing the same configuration. We originally designed this provider to update the nodes of a Kubernetes cluster.\n\nProvided a list of hostnames, their associated NixOS configurations, and a healthcheck script to perform, this provider updates the various hosts one by one. If the healthcheck fails on a host, the host configuration is rollbacked and the overall deployment canceled.\n\n## Inputs\n\nThis module takes a list of hosts. Each host is defined with:\n\n- **nixos_system**: the NixOS system to deploy.\n- **target_hosgt**: the hostname of the system to deploy.\n- **target_user**: user used to deploy. Defaults to `root`.\n- **target_port**: listening port of the ssh server. Defaults to `22`.\n- **ssh_private_key**: content of the private key used to connect to the target_host. If set to -, no key is passed to openssh, it fallback to its local config.\n- **ignore_systemd_errors**: do not fail the deployment if a systemd service fails after activation.\n- **healthcheck**: bash script run on the host after the deployment. Considered failed if exits with a non 0 code.\n\n## Usage Example\n\n```hcl\nmodule \"fleet-provider-test\" {\n  source   = \"git::https://github.com/numtide/nixos-fleet-provider.git\"\n  hosts = [ {\n    nixos_system = \"\"\n    target_host = \"111.111.111.111\"\n    target_user = \"root\"\n    target_port = 22\n    ssh_private_key = \"/run/secrets/deployment-key\"\n    healthcheck_script = \"${path.module}/healcheck.sh\"\n    ignore_systemd_errors = false\n  },\n  hosts = [ {\n    nixos_system = \"\"\n    target_host = \"222.222.222.222\"\n    target_user = \"root\"\n    target_port = 22\n    ssh_private_key = \"/run/secrets/deployment-key\"\n    healthcheck_script = \"${path.module}/healcheck.sh\"\n    ignore_systemd_errors = false\n  },\n]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtide%2Fnixos-fleet-update-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtide%2Fnixos-fleet-update-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtide%2Fnixos-fleet-update-provider/lists"}