Skip to content

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
@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