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

Use RequiresMountsFor on datadir #1582

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

ekohl
Copy link
Collaborator

@ekohl ekohl commented Mar 25, 2024

It is quite common for the data directory to be on its own mount. Systemd can ensure a directory is mounted before a service starts using RequiresMountsFor:

Takes a space-separated list of absolute paths. Automatically adds dependencies of type Requires= and After= for all mount units required to access the specified path.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

It is quite common for the data directory to be on its own mount.
Systemd can ensure a directory is mounted before a service starts using
RequiresMountsFor[1]:

> Takes a space-separated list of absolute paths. Automatically adds
> dependencies of type Requires= and After= for all mount units required
> to access the specified path.

[1]: https://www.freedesktop.org/software/systemd/man/latest/systemd.unit.html#RequiresMountsFor=
@ekohl
Copy link
Collaborator Author

ekohl commented Mar 25, 2024

I think the test failures are infra issues and not related.

@bastelfreak bastelfreak merged commit 8ec8f73 into puppetlabs:main Mar 26, 2024
40 of 44 checks passed
@ekohl ekohl deleted the ensure-datadir-is-mounted branch March 26, 2024 12:35
@ekohl ekohl added the feature label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants