# Example: Incus cluster node (no defaults)
#
# For cluster nodes, apply_defaults should be false to avoid
# creating conflicting storage pools and network bridges.
# The cluster leader will push configuration to joining nodes.
#
# Usage with incusos-seed:
#   incusos-seed --cert ~/.config/incus/client.crt --hostname node-02
#
# After installation, join the cluster with:
#   incus admin init  (on the node, choosing "join existing cluster")

# --- incus.yaml ---
apply_defaults: false
preseed:
  certificates:
    - name: "my-workstation"
      type: "client"
      certificate: |-
        -----BEGIN CERTIFICATE-----
        <paste your certificate from: incus remote get-client-certificate>
        -----END CERTIFICATE-----

# --- network.yaml ---
# dns:
#   hostname: "node-02"
#   domain: "lab.local"
#   nameservers:
#     - "192.168.1.1"
# interfaces:
#   - name: "mgmt"
#     hwaddr: "enp5s0"
#     addresses:
#       - "dhcp4"
#     roles:
#       - management
#       - cluster
