-
Notifications
You must be signed in to change notification settings - Fork 34
Support additional nodegroups #704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The variable control_ip_address was documented but not implemented. Since we support multiple networks, change it to control_ip_addresses and implement it. Closes #642.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note this is exactly as per tofu/login.tf
, except it has non-login secgroups by default, and those can optionally be overriden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, once CI passing. I agree that login and compute should be suffixed with "_nodegroups" but we can live with it. It would be good to test this in CI at some point too
Should have said, this has been tested locally using the CI environment, so it does actually work! Bit loath to add it to CI as we already struggle with resources. |
Important
I'm not sure the name
additional_nodegroups
is the best? Others arecompute
andlogin
, although in a way it would be better if they contained_nodegroups
too.Adds opentofu variable
additional_nodegroups
to support defining non-Slurm nodes in the cluster. E.g.:Nodes are automatically added to an inventory group of the same name as the node group.
Slurm-controlled rebuild and compute-init is not supported, as these nodes will not be running slurmd.
Security groups are those from opentofu variable
nonlogin_security_groups
by default, but may be overriden.Also adds compute nodes into an inventory group of the same name as the note group, in addition to the existing
${cluster_name}_${group_name}
inventory group required forstackhpc.openhpc
role partition configuration. This simplifies multi-environment configuration.