Hello, all I am trying to setup a server on Hetzne...
# general
h
Hello, all I am trying to setup a server on Hetzner cloud with some cloud init, my problem is that the server gets activated but the cloud init does not run I have test it with a simple example
Copy code
const script = fs.readFileSync("./cloud-config.yaml", "utf8");

  const server = new hcloud.Server("my-server", {
    serverType: "cx11",
    image: "ubuntu-22.04",
    location: "nbg1",
    userData: script,
  });
Copy code
#cloud-config
runcmd:
  - mkdir -p /apps
  - echo "VAR1=value1" > /apps/.env
  - echo "VAR2=value2" >> /apps/.env
  - echo "VAR3=value3" >> /apps/.env
  - echo "VAR4=value4" >> /apps/.env
f
In Azure, my userData had to be base-64 encoded; I don't know if hetzner is the same 😞