3
0
Fork 0
forked from mirrors/nixpkgs
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
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
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
netatalk.nix
nfsd.nix
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
yandex-disk.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00