Skip to content

[release/v14] Add Linode machine_config_v2 support for interface networking and user data #2123

@github-actions

Description

@github-actions

Backport #2121 to release/v14 for #2122

Please add this issue to the proper milestone.
Copied from PR:
Fixes #2120

Description

Adds support for the new Linode machine config fields in rancher2_machine_config_v2 so Terraform can configure the Linode machine driver updates for:

  • interface/VPC networking
  • metadata user_data / cloud-init

This change updates the Linode machine config schema, expand/flatten handling, validation, docs, and tests.

New linode_config fields:

  • use_interfaces
  • vpc_subnet_id
  • vpc_private_ip
  • public_interface_firewall_id
  • vpc_interface_firewall_id
  • user_data

Compatibility notes:

  • Existing legacy create_private_ip support is preserved.
  • Validation prevents mixing legacy private IP mode with interface/VPC mode.
  • Validation also enforces vpc_subnet_id when use_interfaces is enabled.

This PR depends on the corresponding Linode machine driver support landing first:

Until those changes are merged and available in the driver consumed by Rancher, these provider fields will not be usable end-to-end.

Testing

Updated unit tests cover Linode machine config expand/flatten behavior for the new fields.

I did not run the full provider test suite as part of opening this PR.

Not a breaking change.

Metadata

Metadata

Assignees

Labels

internal/backportThis is an issue tracking the testing and release of a PR to a specific version.release/v14Targets release v14.x correlating to Rancher's v2.14.x

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions