k3s-io / k3s-ansible

Apache License 2.0
2.08k stars 822 forks source link

Make agent and server groups configurable #331

Closed simagick closed 5 months ago

simagick commented 5 months 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 5 months ago

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