{"id":22071778,"url":"https://github.com/mhutter/hcloud-packer-coreos","last_synced_at":"2026-02-12T05:06:26.076Z","repository":{"id":192094877,"uuid":"686053148","full_name":"mhutter/hcloud-packer-coreos","owner":"mhutter","description":"CoreOS Packer template for Hetzner Cloud","archived":false,"fork":false,"pushed_at":"2025-08-12T10:14:52.000Z","size":59,"stargazers_count":10,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T13:33:51.047Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","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/mhutter.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}},"created_at":"2023-09-01T16:15:48.000Z","updated_at":"2025-08-12T10:14:38.000Z","dependencies_parsed_at":"2025-06-11T22:31:19.705Z","dependency_job_id":"3b7ecf37-925f-40f0-ba9c-ce250dcfc57f","html_url":"https://github.com/mhutter/hcloud-packer-coreos","commit_stats":null,"previous_names":["mhutter/hcloud-packer-coreos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mhutter/hcloud-packer-coreos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fhcloud-packer-coreos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fhcloud-packer-coreos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fhcloud-packer-coreos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fhcloud-packer-coreos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhutter","download_url":"https://codeload.github.com/mhutter/hcloud-packer-coreos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fhcloud-packer-coreos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272847012,"owners_count":25003114,"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-08-30T02:00:09.474Z","response_time":77,"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":[],"created_at":"2024-11-30T20:34:05.416Z","updated_at":"2026-02-12T05:06:21.048Z","avatar_url":"https://github.com/mhutter.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CoreOS Packer template for Hetzner Cloud\n\nThis template builds a fully functioning Fedora CoreOS image on [Hetzner Cloud](https://hetzner.cloud/?ref=72AtIaBWO7Uw)[^1]\n\n[^1]: Use this link to get €20 cloud balance for free. If you spend money with Hetzner Cloud, I get €10 as kickback.\n\n## Features\n\n- Support for Ignition configs provided via user data\n- Automatic configuration of SSH public keys for `core` user\n- Hostname configuration\n- Support for `Arm64 (Ampere)`\n\n## Usage\n\nPrerequisites:\n\n- [Packer](https://developer.hashicorp.com/packer/downloads?product_intent=packer)\n- [Butane](https://coreos.github.io/butane/getting-started/)\n\n(If you use Nix, just run `nix develop` to get a shell with those tools available)\n\n```sh\nexport HCLOUD_TOKEN='helpiamtrappedinatokengenerator'\nmake build\n```\n\n## How it works\n\nImage-building itself is straight forward:\n\n1. provision any Linux server \u0026 boot in rescue mode\n1. stream the CoreOS raw disk image onto `/dev/sda`\n1. write a \"chainloading\" Ignition config (see below)\n\nNow, the biggest challenge is configuring CoreOS systems properly. For Hetzner-provided images, `cloud-init` takes care of those things:\n\n- set the hostname\n- configure SSH public keys for `root`\n- apply configuration provided as \"user data\"\n\nCoreOS however only supports Ignition (a `cloud-init` alternative developed by CoreOS), which does not yet know how to talk to the Hetzner metadata/userdata service (PRs are open since 2018 ...).\nWe work around this by applying a few hacks (see [`files/chain.bu`](./files/chain.bu)):\n\n- Configure a remote Ignition config to be merged into the statically provisioned one. As the source we configure the Hetzner userdata endpoint (`http://169.254.169.254/hetzner/v1/userdata`). This allows us to just use Ignition configs as userdata.\n- Write `/etc/hostname` based on data from the Hetzner metadata endpoint (`http://169.254.169.254/hetzner/v1/metadata/hostname`)\n- Write a Systemd service that downloads \u0026 installs the SSH public keys as authorized keys for the preconfigured `core` user.\n\n## Further Reading\n\n- [Hetzner Cloud Builder for Packer](https://developer.hashicorp.com/packer/integrations/hetznercloud/hcloud)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fhcloud-packer-coreos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhutter%2Fhcloud-packer-coreos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fhcloud-packer-coreos/lists"}