k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

Make agent and server groups configurable #331

Closed simagick closed 1 month ago

simagick commented 1 month ago

Changes

Inventory group names server and agent are configured through server_group and agent_group variables.

The use of hard-coded group names causes issues when managing multiple clusters within the same inventory. When the control plane is initialized each server node connects to the first member of the server group, and therefore all members of each server group must belong to the same cluster.

This change allows more flexibility in how operators manage their inventory. A configurable agent group is added for completeness.

Linked Issues

https://github.com/k3s-io/k3s-ansible/issues/327

dereknola commented 1 month ago

Lint is failing for unrelated reason, I'll handle in another PR