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

allowing changes to data-dir #255

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

aleiner
Copy link
Contributor

@aleiner aleiner commented Aug 2, 2024

What type of PR is this?

(REQUIRED)

  • bug
  • cleanup
  • documentation
  • feature

What this PR does / why we need it:

RKE2 allows for a data-dir variable to be passed in via rke2/config.yaml that will allow a user to specify a different path other then /var/lib/rancher/rke2. Since that path is hard coded throughout the module, this creates a variable with that value and replaces all hard coded references.

Things to note, SELINUX might not work correctly since the new path isn't configured via rke2-selinux and rke2-uninstall.sh won't clean up this directory since it doesn't know about it.

Which issue(s) this PR fixes:

Fixes #254

@aleiner aleiner requested a review from mddamato August 2, 2024 19:28
@aleiner aleiner linked an issue Aug 2, 2024 that may be closed by this pull request
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.

support changing data-dir
1 participant