nixpkgs/nixos/modules
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
..
config nixos/fontconfig-ultimate: remove 2019-11-06 12:02:35 -05:00
hardware brillo: init at 1.4.8 2019-11-03 14:42:43 +01:00
i18n/input-method Revert "nixos/doc: re-format" 2019-09-19 19:17:30 +02:00
installer nixos-rebuild: add explicit option to enable (remote) sudo 2019-11-07 17:03:12 +01:00
misc locate.nix: Don't create /var/cache 2019-10-08 21:45:42 +02:00
profiles Revert "installer: Disable udisks" 2019-10-16 20:31:24 -04:00
programs Merge pull request #73004 from philandstuff/patch-1 2019-11-08 04:13:58 +00:00
security pam_mount: change order of lines in pam_mount.conf 2019-11-03 12:43:01 +08:00
services nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
system Merge pull request #71986 from mtetreault/mte/plymouth-improvements 2019-11-09 08:17:14 -06:00
tasks Fix typo in message (vswichtesvswitches) 2019-10-26 13:26:01 +02:00
testing nixos/test: remove the stateVersion statement from the test-instrumentation 2019-06-03 15:05:24 +02:00
virtualisation Merge pull request #55645 from eonpatapon/qemu-vm-drives 2019-11-04 08:30:37 +01:00
module-list.nix nixos/fontconfig-ultimate: remove 2019-11-06 12:02:35 -05:00
rename.nix nixos/fontconfig-ultimate: remove 2019-11-06 12:02:35 -05:00