https://github.com/magec/puppetlabs-hcloud_inventory
Hetzner Cloud Inventory plugin for puppet bolt
https://github.com/magec/puppetlabs-hcloud_inventory
Last synced: over 1 year ago
JSON representation
Hetzner Cloud Inventory plugin for puppet bolt
- Host: GitHub
- URL: https://github.com/magec/puppetlabs-hcloud_inventory
- Owner: magec
- License: mit
- Created: 2020-04-08T04:00:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T02:33:24.000Z (over 3 years ago)
- Last Synced: 2025-01-21T00:17:44.131Z (over 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hetzner_inventory
#### Table of Contents
1. [Description](#description)
2. [Requirements](#requirements)
3. [Instllation](#installation)
4. [Usage](#usage)
## Description
This module includes a Bolt plugin to generate Bolt targets from hetzner cloud servers.
## Requirements
This module requires [`hcloud`](https://rubygems.org/gems/hcloud). You need to install it
manually using bolt's gem command.
```
/opt/puppetlabs/bolt/bin/gem install hcloud
```
## Installation
Add this line to your Puppetfile:
```
mod 'puppetlabs-hcloud_inventory', :git => 'https://github.com/magec/puppetlabs-hcloud_inventory.git'
```
and execute:
```
$ bolt puppetfile install
```
## Usage
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
### Examples
`inventory.yaml`
```yaml
groups:
- name: nodes
targets:
- _plugin: hcloud_inventory
api_token: SECRET
config:
ssh:
user: user
proxyjump: user@gateway.example.com
host-key-check: false
```