{"id":15862523,"url":"https://github.com/ifeulner/packer-hcloud-ubuntu","last_synced_at":"2025-03-16T00:31:41.177Z","repository":{"id":215592947,"uuid":"551470563","full_name":"ifeulner/packer-hcloud-ubuntu","owner":"ifeulner","description":"Create an ubuntu snapshot on Hetzner Cloud following the DevSec guidelines","archived":false,"fork":false,"pushed_at":"2022-10-14T19:11:22.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T04:46:31.127Z","etag":null,"topics":["ansible","devsec","hashicorp","hetzner","hetzner-cloud","os-hardening","packer"],"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/ifeulner.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-10-14T13:11:41.000Z","updated_at":"2024-08-28T05:30:59.000Z","dependencies_parsed_at":"2024-01-05T10:46:37.856Z","dependency_job_id":"ffb6b856-0f24-43c7-b5b9-86ceab10cc6c","html_url":"https://github.com/ifeulner/packer-hcloud-ubuntu","commit_stats":null,"previous_names":["ifeulner/packer-hcloud-ubuntu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Fpacker-hcloud-ubuntu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Fpacker-hcloud-ubuntu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Fpacker-hcloud-ubuntu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ifeulner%2Fpacker-hcloud-ubuntu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ifeulner","download_url":"https://codeload.github.com/ifeulner/packer-hcloud-ubuntu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801635,"owners_count":20350107,"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":["ansible","devsec","hashicorp","hetzner","hetzner-cloud","os-hardening","packer"],"created_at":"2024-10-05T22:41:14.927Z","updated_at":"2025-03-16T00:31:40.792Z","avatar_url":"https://github.com/ifeulner.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customized ubuntu image on Hetzner Cloud\n\nCreate an Ubuntu 20.04 snapshot on [Hetzner Cloud](https://www.hetzner.com/cloud) that meets the [DevSec Linux Baseline](https://github.com/dev-sec/linux-baseline) specification.\n\nConfiguration management is done via ansible using the `os-hardening-role`of the [ansible dev-sec collection](https://github.com/dev-sec/ansible-collection-hardening/tree/master/roles/os_hardening).\nUsed roles see ansible/requirements.yml\n\n## Install packer\n\npacker is a great tool provided by Hashicorp, for more details see [Packer by Hashicorp](https://www.packer.io)\n\nOn macOS using [brew](https://brew.sh)\n\n```bash\nbrew install packer\n```\n\n## Building\n\n```bash\nexport HCLOUD_TOKEN=\u003credacted\u003e\n\n# for verbose logging\n# export PACKER_LOG=1\n\npacker build hcloud-ubuntu-snapshot.pkr.hcl\n```\n\nAfterwards your can connect via `ssh` on port `2222`.\n\n## Managing images\n\n```bash\n# show all snapshots (customized images)\nhcloud image list -t snapshot\n\n# get all images with label ubuntu-snapshot\nhcloud image list -o noheader -o \"columns=id\" -l ubuntu-snapshot\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifeulner%2Fpacker-hcloud-ubuntu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifeulner%2Fpacker-hcloud-ubuntu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifeulner%2Fpacker-hcloud-ubuntu/lists"}