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

(POOLER-66) Purge vms and folders no longer configured #274

Merged
merged 3 commits into from
Jul 19, 2018

Conversation

mattkirby
Copy link
Contributor

This commit enables optional purging for vms and folders when they are
not configured in the vmpooler provided configuration. Base folders are
determined from folders specified in the pool configuration. Then,
anything not configured in that folder for that provider and is not a
whitelisted folder title will be destroyed. Without this change vmpooler
will leave unconfigured vms and folders behind and any vms will be left
running forever without manual intervention. Additionally, any
associated redis data will never be expired.

@mattkirby
Copy link
Contributor Author

I added one more change that I found was necessary, referencing the provider_config object instead of trying to get the provider name again and finding its config via the global config object. I had not previously realized I could access the provider configuration this way.

@sbeaulie
Copy link
Contributor

Can you add the new config options to the documentation?

@mattkirby
Copy link
Contributor Author

mattkirby commented Jul 13, 2018

Yes, good point.

I have added documentation here.

This commit enables optional purging for vms and folders when they are
not configured in the vmpooler provided configuration. Base folders are
determined from folders specified in the pool configuration. Then,
anything not configured in that folder for that provider and is not a
whitelisted folder title will be destroyed. Without this change vmpooler
will leave unconfigured vms and folders behind and any vms will be left
running forever without manual intervention. Additionally, any
associated redis data will never be expired.
@mattkirby mattkirby force-pushed the cleanup_unused_folders_and_vms branch from b1f70c2 to d9e1fea Compare July 13, 2018 19:25
Copy link
Contributor

@kevpl kevpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@kevpl kevpl merged commit 099b53f into puppetlabs:master Jul 19, 2018
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.

4 participants