Skip to content

hcloud_vms

Provisions virtual machines on HETZNER Cloud. Generates an inventory in the context directory - this is an Ansible-compatible inventory that can be consumed by plugins like k3s.

Configuration

# defaults
commands:
  install:
    script:
      - ansible-playbook infra_hcloud_vms.yml
  uninstall:
    script:
      - ansible-playbook infra_hcloud_vms.yml
config:
  inventory:
    path: inventory.yml
  master:
    count: 1
    location: fsn1
    type: cx31
  node:
    count: 3
    location: fsn1
    type: cx31
  os_image: ubuntu-20.04
  token: "" # the HETZNER API token

Last update: May 22, 2022