https://github.com/m110/packer-builder-hcloud
Packer builder plugin for Hetzner Cloud - https://hetzner.cloud
https://github.com/m110/packer-builder-hcloud
golang hetzner hetzner-cloud packer
Last synced: about 1 month ago
JSON representation
Packer builder plugin for Hetzner Cloud - https://hetzner.cloud
- Host: GitHub
- URL: https://github.com/m110/packer-builder-hcloud
- Owner: m110
- License: mit
- Created: 2018-01-25T20:15:28.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T10:15:44.000Z (almost 6 years ago)
- Last Synced: 2025-03-18T21:54:30.322Z (about 1 month ago)
- Topics: golang, hetzner, hetzner-cloud, packer
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 25
- Watchers: 3
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED: see official builder here: https://www.packer.io/docs/builders/hetzner-cloud.html
# packer-builder-hcloud
[Packer](https://packer.io/) builder plugin for [Hetzner Cloud](https://hetzner.cloud/).This plugin can be used to build provisioned images (snapshots) for Hetzner Cloud.
Those can be later used for rapid deploying using [Terraform](https://terraform.io/) (check the [official plugin](https://github.com/hetznercloud/terraform-provider-hcloud)).# Building
You'll need [dep](https://github.com/golang/dep) to install dependencies.
Clone the repository and run:
```
dep ensure
go build -o ~/.packer.d/plugins/packer-builder-hcloud
```# Example template
```
{
"builders": [
{
"type": "hcloud",
"token": "API_TOKEN",
"server_type": "cx11",
"source_image": "ubuntu-16.04",
"image_name": "some-image",
"location": "fsn1",
"datacenter": "fsn1-dc8",
"user_data": "",
"ssh_username": "root"
}
]
}
```See https://github.com/m110/infrastructure-as-code for more complete example.
You can find server types and soure images querying [the API](https://docs.hetzner.cloud/#resources-server-types).
# Known issues
* For some reason, `ansible-remote` provider works only with paramiko connection.