Closed flpajany closed 1 year ago
you'd have to use:
- op: add
path: /machine/network
Also it's now recommended to strategic merge patching:
machine:
network:
interfaces: ..............
hostname: <>
Hello @frezbo,
I already tried "- op: add" and it is the same :
│ Error: failed to generate machine configuration │ │ with module.cluster.data.talos_machine_configuration.controlplane, │ on modules/cluster_talos/main.tf line 43, in data "talos_machine_configuration" "controlplane": │ 43: data "talos_machine_configuration" "controlplane" { │ │ failure applying rfc6902 patches to talos machine config: add operation does not apply: doc is missing path: "/machine/network": missing value
But... the strategic merge patching is working !
Thx a lot for your answer. 👍
Hello,
I am trying to set some config_patches operations in data source
talos_machine_configuration
but I have some errors.In particular, I want to change the controlplane configuration with static IP allocated by infoblox and I put the code below for config_patches :
The patch file
cp.patch.test.yaml.tmpl
looks like this :When I apply the plan, I have theses errors :
╷ │ Error: failed to generate machine configuration │ │ with module.cluster.data.talos_machine_configuration.controlplane, │ on modules/cluster_talos/main.tf line 43, in data "talos_machine_configuration" "controlplane": │ 43: data "talos_machine_configuration" "controlplane" { │ │ failure applying rfc6902 patches to talos machine config: replace operation does not apply: doc is missing path: /machine/network: missing value
Could you help ?
Regards,