{
  "description": "HetznerConfig represents the desired configuration of each machine provisioned within a machine pool associated with a provisioning.cattle.io cluster.",
  "properties": {
    "apiToken": {
      "default": "",
      "description": "Hetzner Cloud API token",
      "nullable": true,
      "type": "string"
    },
    "autoCreateFirewallRules": {
      "default": false,
      "description": "Automatically create firewall rules for RKE2 inter-node communication",
      "type": "boolean"
    },
    "clusterId": {
      "default": "",
      "description": "Cluster identifier for shared firewall and resource labeling",
      "nullable": true,
      "type": "string"
    },
    "createFirewall": {
      "default": false,
      "description": "Create a new firewall for the server",
      "type": "boolean"
    },
    "disablePublicIpv4": {
      "default": false,
      "description": "Disable public IPv4 address",
      "type": "boolean"
    },
    "disablePublicIpv6": {
      "default": false,
      "description": "Disable public IPv6 address",
      "type": "boolean"
    },
    "existingSshKey": {
      "default": "",
      "description": "Use an existing SSH key by name or ID (added alongside the auto-generated key)",
      "nullable": true,
      "type": "string"
    },
    "firewallName": {
      "default": "",
      "description": "Name for the created firewall (default: rancher-<cluster-name>)",
      "nullable": true,
      "type": "string"
    },
    "firewalls": {
      "description": "Firewall IDs or names to apply to the server",
      "items": {
        "nullable": true,
        "type": "string"
      },
      "nullable": true,
      "type": "array"
    },
    "image": {
      "default": "ubuntu-24.04",
      "description": "Hetzner Cloud image name or ID (e.g. ubuntu-24.04, debian-12)",
      "nullable": true,
      "type": "string"
    },
    "networks": {
      "description": "Network IDs or names to attach to the server",
      "items": {
        "nullable": true,
        "type": "string"
      },
      "nullable": true,
      "type": "array"
    },
    "placementGroup": {
      "default": "",
      "description": "Placement group ID or name",
      "nullable": true,
      "type": "string"
    },
    "serverLocation": {
      "default": "fsn1",
      "description": "Hetzner Cloud server location (e.g. fsn1, nbg1, hel1)",
      "nullable": true,
      "type": "string"
    },
    "serverType": {
      "default": "cx23",
      "description": "Hetzner Cloud server type (e.g. cx23, cx33, cx43)",
      "nullable": true,
      "type": "string"
    },
    "usePrivateNetwork": {
      "default": false,
      "description": "Use private network for machine communication",
      "type": "boolean"
    },
    "userData": {
      "default": "",
      "description": "Cloud-init user data (string or file path)",
      "nullable": true,
      "type": "string"
    }
  },
  "type": "object"
}
