nixpkgs/nixos/modules/services/network-filesystems
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
..
openafs treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
orangefs nixos/orangefs: add modules for server and client 2019-09-25 14:17:08 +02:00
beegfs.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
cachefilesd.nix cachefilesd service: init 2016-10-16 19:58:33 +03:00
ceph.nix nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
davfs2.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
diod.nix nixos/diod: fix permissions 2019-02-17 18:26:00 +01:00
drbd.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
glusterfs.nix nixos: remove dependencies on local-fs.target 2019-09-01 19:06:38 +02:00
ipfs.nix nixos: remove dependencies on local-fs.target 2019-09-01 19:06:38 +02:00
kbfs.nix kbfs: normal users only 2017-10-24 16:30:07 +08:00
netatalk.nix treewide: use boolToString function 2017-04-11 18:18:53 +02:00
nfsd.nix nfsd: add extraNfsdConfig 2017-09-23 16:22:27 -04:00
rsyncd.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
samba.nix Merge pull request #41841 from Izorkin/samba 2019-10-12 14:31:39 +00:00
tahoe.nix services.tahoe: Use 1.13-compatible invocations. 2019-02-19 10:23:47 -08:00
u9fs.nix u9fs service: start after network.target 2019-06-30 22:43:08 -04:00
xtreemfs.nix nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
yandex-disk.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00