Re: [PATCH] terraform: refactor tasks into provider-specific modules
"Chuck Lever" <[email protected]> Fri, 19 Dec 2025 13:02:06 -0500
| Newsgroups | dev.linux.lists.kdevops |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Dec 17, 2025, at 10:46 AM, Chuck Lever wrote: > The terraform role's main.yml had grown to nearly 800 lines with > Lambda Labs and DataCrunch provider-specific logic interleaved > throughout the file. This made maintenance difficult and required > understanding the entire file to make changes for a single provider. > > This refactoring creates a plugin-like architecture where each cloud > provider's unique requirements are isolated in dedicated task files. > The new structure separates concerns by operation (bringup, destroy) > and by provider (lambdalabs, datacrunch, generic), making it > straightforward to add support for new providers or modify existing > ones without risk of breaking other providers. > > Common functionality shared across all providers, such as SSH > configuration and status reporting, is now cleanly separated in a > common directory. This follows patterns already established in other > roles like bootlinux and guestfs. > > Generated-by: Claude AI > Signed-off-by: Chuck Lever <[email protected]> Merged into origin/main. Chuck Lever