Questions tagged [hcloud]

11 questions
4
votes
1 answer

How can i set a count in for_each in terraform

I'm learning terraform by building a template to create my infrastructure in the hetzner cloud. For this purpose I'm using the hcloud provider. I create a map variable hosts to create >1 server with different configuration. variable "hosts" { …
sokolata
  • 491
  • 3
  • 7
  • 21
1
vote
0 answers

Kubernetes CSI Driver: Mounting of volumes when pods run on different nodes

I am currently using the Hetzner CSI-Driver (https://github.com/hetznercloud/csi-driver) in Kubernetes, which works fine for the most part. But sometimes I run into the issue that two pods using the same persistentVolumeClaim get scheduled onto…
Juliette
  • 966
  • 16
  • 35
1
vote
1 answer

How to create an hcloud load balancer service with certificates

I'm trying to create an hcloud (hetzner cloud) load balancer and add an https service to it via terraform. For some reason I'm unable to attach the certificates to the load balancer service and I get the following error: Error: Incorrect attribute…
1
vote
2 answers

Setup Docker Swarm on Hetzner Cloud, Is it safe to route traffic between Docker Nodes via its Public IP address?

I'm new to Docker but I have learned quite enough knowledge and I'm going to setup Docker Swarm Cluster on Hetzner Cloud Platform (cloud.hetzner.com). However the problem is they don't provide Private IP address for each of their Instance machines.…
Dylan B
  • 796
  • 8
  • 16
0
votes
0 answers

How can I use cloud-init with Flatcar on Hetzner?

I want to use Flatcar with Cloud-Init on Hetzner Cloud Servers. After installing flatcar on a server via rescue system i want to create a snapshot from this server and create new servers out of this snapshot. To these snapshots I want to parse my…
Simon
  • 1
0
votes
1 answer

Ansible Hetzner Cloud - Create a server in private network

I am using Ansible to create a server in the Hetzner Cloud, the playbook reads: - name: create the server at Hetzner hetzner.hcloud.hcloud_server: name: "{{server_hostname}}" enable_ipv4: false enable_ipv6: false server_type: cx11 …
jos
  • 83
  • 1
  • 6
0
votes
1 answer

How-to: Hetzner Cloud Ansible - setting up hetzner server using ansible

While trying to create a hetzner server using ansible and following the below documentation; https://community.hetzner.com/tutorials/howto-hcloud-ansible The playbook gets stuck for some reason and no server is created. Any ideas why this is…
0
votes
1 answer

Terraform and complex variables

I am using the "Hetzner" provider with Terraform. My plan is to have something like this in fx .auto.tfvars : fw_openings = [ { port = "22", protocol = "tcp", subnet = "100.100.100.100/32" }, { port = "80", …
ZiGGi
  • 3
  • 1
  • 2
-1
votes
1 answer

List all my hetzner server names and their IPv4 addresses - getting error

I'm trying to receive a list of all my server names and their IPs on Hetzner using ansible and hcloud module however I'm receiving the following error; ERROR! couldn't resolve module/action 'hcloud'. This often indicates a misspelling, missing…
-2
votes
1 answer

Ansible failed to import Hetzner hcloud Python library

Ubuntu 21.10 Ansible 2.10.8 hcloud 1.16.0 Python 3.9.7 Running an Ansible playbook on a fresh installation of Ansible and Hetzner's hcloud Python module, an error shows up and the script is aborted: Failed to import the required Python library…
Roberto Jobet
  • 153
  • 4
  • 15