-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add r10k's purge_level, revert unmanaged/change files #80
Comments
Just checked the debug log and it turns out that something like that is already happening, but only for some directories:
This is a folder each of our environments has which should contain all external repositories. The folder structure looks like this:
The module path is: Can you please explain how the purging works? :) |
g10k checks your This is also the reason I added the local modules support: g10k would not detect if a file or a subdirectory inside a module directory was changed though. I don't know if that is enough for your use-case. |
Thanks for the explanation! :) I think the purging should always happen after the deployment of the module, currently it seems to happen before the modules get deployed which leads to the following experience:
|
The removal of unmanaged directories inside the Is the |
No, neither the modules nor the external folder are part of the control repository. I just guessed by the test output i posted above that the cleanup happens before the deployment. Not sure what is going on here. |
Do you have the environment variable |
Nope, i only use the configuration file:
|
So the |
No, external is just a folder which contains upstream modules as described #80 (comment) |
You should be able to reproduce this problem with https://github.com/baurmatt/g10k-77-control |
The problem was that I did not consider the I'm now checking if the already existing directory is a parent directory of the Please check out v0.4.4 |
Awesome, thank you very much! :) I can't reproduce the problem described in #80 (comment). The problem I described at the beginning of the issue (unchanged/modified files/folder within the modules aren't reverted) still exists. Should i open a new issue for that? |
Yes, please open a new ticket if the problem still exists. |
It would be great if the r10k feature purge_level could be added. Currently $someone could manually edit the deployed module/environment without g10k noticing.
That said, we're looking for a feature which verifies on each g10k run that all files are in the state the Puppetfile/control repository describes them.
The text was updated successfully, but these errors were encountered: