Skip to content
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

Allow volumes to not be managed by Magic Castle (instead, use existing ones) #339

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

mboisson
Copy link
Member

@mboisson mboisson commented Jan 13, 2025

If the volumes define

managed = false

Then Terraform will not create or destroy the volumes. It will instead attempt to fetch pre-existing volumes that follow the naming convention (<cluster name>-<node name>-<volume name>, i.e. testy-mgmt1-home), and mount these volumes in the instance. Puppet will then handle the volumes as if it were created by Terraform: from a blank volume, it will create the filesystem, while from a preconfigured volume, it will just stay as is.

@mboisson
Copy link
Member Author

mboisson commented Jan 14, 2025

This PR fixes #326

@mboisson mboisson changed the title [WIP] Allow volumes to not be managed by Magic Castle (instead, use existing ones) Allow volumes to not be managed by Magic Castle (instead, use existing ones) Jan 14, 2025
@mboisson
Copy link
Member Author

Not sure why the first test fails. Seems to be unrelated (terraform command not found)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant