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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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.

2 participants