packer-builder-hcloud

command module
v0.0.0-...-db8829f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2019 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

DEPRECATED: see official builder here: https://www.packer.io/docs/builders/hetzner-cloud.html

packer-builder-hcloud

Packer builder plugin for 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 (check the official plugin).

Building

You'll need 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.

Known issues

  • For some reason, ansible-remote provider works only with paramiko connection.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
builder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL