Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bastelfreak/puppet-hetznercloud
puppet module to manage hetzner cloud servers
https://github.com/bastelfreak/puppet-hetznercloud
hcloud hetzner hetzner-cloud puppet
Last synced: 1 day ago
JSON representation
puppet module to manage hetzner cloud servers
- Host: GitHub
- URL: https://github.com/bastelfreak/puppet-hetznercloud
- Owner: bastelfreak
- License: agpl-3.0
- Created: 2018-01-27T22:55:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T22:37:50.000Z (about 7 years ago)
- Last Synced: 2024-10-19T22:12:54.292Z (4 months ago)
- Topics: hcloud, hetzner, hetzner-cloud, puppet
- Language: Ruby
- Size: 36.1 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# puppet-hetznercloud
A module to manage cloud instances via the Hetzner API
## Examples
### Create a simple server
```
puppet resource hetzner_server test3 image=centos-7 server_type=cx11
```This will create a server called test3, with a CentOS 7 image and the CX11 resources
### List all servers
```
puppet resource hetzner_server
```## Parameters
This custom type takes a few parameters
### ensure
Valid values are running, off, absent. Defaults to running, you can change the status from all statuses to all others
### name
The RFC1123 compliant hostname. Needs to be unique for all servers
### datacenter
Optional param, can currently be fsn1-dc8 or nbg-dc3
### location
Optional param, can currently be fsn1 or nbg1
### image
Required param, can currently be ubuntu-16.04, debian-9, centos-7 or fedora-27. In addition you can provide the ID of any existing snapshot
### ssh\_keys
Optional param. If provided it needs to be an array. You need to upload your ssh key in advance, afterwards you can refer to it by its name
### user\_data
Optional string. You can provide it, but it will be ignored
### ipv4
Read-only property. Will show the configured ipv4 address from the system
### ipv6
Read-only property, will show the configured ipv6 prefix from the system
## Testing
You can experiment with this module locally, if you set the RUBYLIB environment variable:
```sh
git clone https://github.com/bastelfreak/puppet-hetznercloud
cd puppet-hetznercloud
RUBYLIB=$(pwd)/lib puppet resource hetzner_server --debug
```