This module includes a Bolt plugin to generate Bolt targets from hetzner cloud servers.
This module requires hcloud
. You need to install it
manually using bolt's gem command.
/opt/puppetlabs/bolt/bin/gem install hcloud
Add this line to your Puppetfile:
mod 'puppetlabs-hcloud_inventory', :git => 'https://github.com/magec/puppetlabs-hcloud_inventory.git'
and execute:
$ bolt puppetfile install
Hetzner cloud generates one api key per project, currently this plugin will add as targets every server inthe project, provided its api_key.
Allowed options:
api_token
: Hetzner api token
inventory.yaml
groups:
- name: nodes
targets:
- _plugin: hcloud_inventory
api_token: SECRET
config:
ssh:
user: user
proxyjump: [email protected]
host-key-check: false