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

Always include the installer answer file in backups #912

Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 15, 2024

If the user has changed the answer file location in their scenario to something outside of /etc/foreman-installer then it isn't backed up.

This changes the installer feature's config_files to include it if needed. It also stops globbing the files and simply trust that you can list a directory, which we already do for the cached data.

I'm unsure about the implications for restores.

Note that this also prepares for the case where we will move the answer files to /var/lib/foreman-installer (provided we keep the scenario files in /etc).

ekohl and others added 2 commits September 25, 2024 08:29
If the user has changed the answer file location in their scenario to
something outside of /etc/foreman-installer then it isn't backed up.

This changes the installer feature's config_files to include it if
needed. It also stops globbing the files and simply trust that you can
list a directory, which we already do for the cached data.
@evgeni evgeni force-pushed the include-installer-answer-file-in-backup branch from 9123a8e to 5320345 Compare September 25, 2024 06:29
@evgeni
Copy link
Member

evgeni commented Sep 25, 2024

Rebased and fixed tests.

I think this should have no implications on restores.

@ekohl ekohl marked this pull request as ready for review October 7, 2024 17:20
@ekohl
Copy link
Member Author

ekohl commented Oct 7, 2024

Thanks for fixing up the tests.

@ehelms ehelms requested a review from evgeni October 7, 2024 17:28
@ehelms ehelms merged commit 20e516d into theforeman:master Oct 7, 2024
8 checks passed
@ekohl ekohl deleted the include-installer-answer-file-in-backup branch October 7, 2024 23:27
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.

3 participants