nixpkgs/nixos
Florian Klink 67e0777f62 nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig
Don't pass user and group to ceph, and rely on it to drop ceps, but let
systemd handle running it as the appropriate user.

This also inlines the extraServiceConfig into the makeService function,
as we have conditionals depending on daemonType there anyways.

Use StateDirectory to create directories in
/var/lib/ceph/${daemonType}/${clusterName}-${daemonId}.

There previously was a condition on daemonType being one of mds,mon,rgw
or mgr. We only instantiate makeServices with these types, and "osd" was
special.
In the osd case, test examples suggest it'd be in something like
/var/lib/ceph/osd/ceph-${cfg.osd0.name} - so it's not special at all,
but exactly like the pattern for the others.

During initialization, we also need these folders, before the unit is
started up. Move the mkdir -p commands in the vm tests to the line
immediately before they're required.
2019-11-09 16:02:53 +01:00
..
doc Merge pull request #70886 from allgreed/add-vbox-docs-hint 2019-11-07 17:24:14 -05:00
lib nixos/tests: correct arguments to get_unit_info 2019-11-08 15:01:42 +01:00
maintainers ec2-amis.nix: add 19.09 amis 2019-10-28 14:04:20 -04:00
modules nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
tests nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
COPYING
default.nix
README
release-combined.nix nixos.tests.fontconfig-default-fonts: init 2019-09-01 00:09:25 -04:00
release-small.nix release-small.nix: Don't depend on currentSystem 2019-06-19 14:07:37 +02:00
release.nix Merge pull request #68265 from tkerber/rpi4 2019-09-27 14:35:17 -04:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.