nixpkgs/nixos/tests
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
..
common nixos/tests/acme.nix: remove pebble custom endpoint patch 2019-10-30 11:09:40 +01:00
google-oslogin
hadoop
hitch
hocker-fetchdocker nixos: remove dependencies on local-fs.target 2019-09-01 19:06:38 +02:00
hydra nixos/hydra: incorporate upstream changes and update test 2019-09-14 12:58:42 +02:00
initrd-network-ssh nixos/tests/initrd-ssh: port to python 2019-11-07 11:30:02 +01:00
installed-tests Merge pull request #72979 from worldofpeace/more-gnome-installed-test-cleanup 2019-11-07 14:34:28 +00:00
kerberos
krb5
kubernetes Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
nextcloud nixos/nextcloud: fix postgresql test 2019-10-13 14:32:14 +02:00
wireguard nixos/wireguard: convert generated test to python 2019-11-04 23:51:10 +01:00
xmpp nixos/ejabberd: fix test for new release 2019-08-20 11:09:40 +02:00
acme.nix nixos/acme: Port test to python 2019-11-04 23:51:10 +01:00
all-tests.nix nixos/tests: add shiori to all-tests.nix 2019-11-08 18:17:08 +01:00
ammonite.nix nixos/ammonite: Port test to python 2019-11-04 23:51:10 +01:00
atd.nix nixos/atd: port test to python 2019-11-06 12:46:24 +01:00
automysqlbackup.nix nixos/automysqlackup: Port test to python 2019-11-04 23:51:10 +01:00
avahi.nix nixos/avahi: port test to python 2019-11-06 12:46:24 +01:00
babeld.nix nixos/babeld: port test to python 2019-11-05 16:19:35 +01:00
bcachefs.nix nixos/bcachefs: port test to python 2019-11-06 12:46:24 +01:00
beanstalkd.nix nixos/beanstalkd: port test to python 2019-11-06 12:46:24 +01:00
beegfs.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
bees.nix
bind.nix nixos/bind: port test to python 2019-11-06 12:46:24 +01:00
bittorrent.nix nixos/bittorrent: Port test to python 2019-11-04 23:51:09 +01:00
blivet.nix
boot-stage1.nix nixos/boot-stage1: port test to python 2019-11-06 12:46:24 +01:00
boot.nix nixos/boot: Port test to python 2019-11-04 23:51:10 +01:00
borgbackup.nix nixos/borgbackup: port test to python 2019-11-06 12:46:24 +01:00
buildbot.nix buildbot: 1.8.1 -> 2.1.0 2019-03-22 18:43:15 -04:00
caddy.nix nixos/caddy: port test to python 2019-11-07 10:51:04 +01:00
cadvisor.nix nixos/cadvisor: port test to python 2019-11-07 10:51:04 +01:00
cassandra.nix nixos/cassandra: Port test to python 2019-11-07 22:40:15 +01:00
ceph-multi-node.nix nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
ceph-single-node.nix nixos/ceph: run unprivileged, use StateDirectory and tmpfiles, don't pass extraServiceConfig 2019-11-09 16:02:53 +01:00
certmgr.nix nixos/certmgr: port test to python 2019-11-07 10:51:04 +01:00
cfssl.nix nixos/cfssl: port test to python 2019-11-07 10:51:04 +01:00
chromium.nix
cjdns.nix nixos/cjdns: port test to python 2019-11-07 10:55:15 +01:00
clickhouse.nix
cloud-init.nix nixos/cloud-init: port test to python 2019-11-07 10:55:15 +01:00
cockroachdb.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
codimd.nix
containers-bridge.nix
containers-ephemeral.nix nixos/containers: add 'ephemeral' option 2019-08-19 15:21:35 +02:00
containers-extra_veth.nix
containers-hosts.nix
containers-imperative.nix nixosTests.containers-imperative: add tmpfiles test 2019-06-03 15:05:18 +02:00
containers-ipv4.nix
containers-ipv6.nix
containers-macvlans.nix
containers-physical_interfaces.nix
containers-portforward.nix
containers-reloadable.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
containers-restart_networking.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
containers-tmpfs.nix maintainers: update my maintainer information (#67686) 2019-09-03 22:52:13 +02:00
couchdb.nix nixos/couchdb: port test to python 2019-11-07 10:55:15 +01:00
deluge.nix nixos/deluge: user, group and web firewall opts. 2019-07-02 22:26:34 +01:00
dhparams.nix
dnscrypt-proxy.nix nixos/dnscrypt-proxy: port test to python 2019-11-07 10:55:15 +01:00
docker-containers.nix NixOS: Run Docker containers as declarative systemd services (#55179) 2019-03-25 00:59:09 +02:00
docker-edge.nix nixos/docker-edge: port test to python 2019-11-07 14:06:40 +01:00
docker-preloader.nix
docker-registry.nix
docker-tools-overlay.nix
docker-tools.nix nixos/tests/docker-tools: check layer sharing with buildLayeredImage 2019-06-06 15:03:08 +02:00
docker.nix nixos/docker: port test to python 2019-11-07 10:55:15 +01:00
documize.nix nixos/documize: port test to python 2019-11-07 10:55:15 +01:00
dovecot.nix
ec2.nix
ecryptfs.nix
elk.nix Merge branch 'master' into staging-next 2019-09-06 16:55:11 +02:00
emacs-daemon.nix nixos/emacs-daemon: convert test to python 2019-11-04 23:51:09 +01:00
env.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
etcd-cluster.nix nixos/tests/etcd-cluster: be more lenient about member addition 2019-07-10 00:42:48 +00:00
etcd.nix
fancontrol.nix Fancontrol: add test etc from #70933 (#72065) 2019-10-29 15:06:32 +01:00
ferm.nix nixos/tests/{ferm,networking}: fix eval with networkd 2019-10-08 17:14:26 +02:00
firefox.nix nixos/firefox: Port integration test to python 2019-11-05 18:07:05 +01:00
firewall.nix
fish.nix
flannel.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
fluentd.nix fluentd: add simple test 2019-07-30 00:37:21 +09:00
fontconfig-default-fonts.nix nixosTests.fontconfig-default-fonts: port to python 2019-11-05 19:51:48 -05:00
fsck.nix nixos/fsck: port test to python 2019-11-05 12:00:26 +01:00
gitea.nix nixos/gitea: convert test to python 2019-11-04 23:51:09 +01:00
gitlab.nix Merge pull request #66274 from talyz/gitlab 2019-09-07 12:52:44 -07:00
gitolite.nix
glusterfs.nix nixos/glusterfs: add test 2019-08-18 18:58:00 +02:00
gnome3-xorg.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
gnome3.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
gocd-agent.nix
gocd-server.nix
gotify-server.nix nixos/gotify: init module and test 2019-10-25 16:19:41 +02:00
grafana.nix nixos/tests/grafana: port to python 2019-11-07 11:30:54 +01:00
graphite.nix
graylog.nix nixos/graylog: add test 2019-07-09 23:57:45 +02:00
haka.nix
handbrake.nix
haproxy.nix
hardened.nix tests/hardened: fix build 2019-09-18 15:38:43 +02:00
hibernate.nix
home-assistant.nix home-assistant: 0.89.2 -> 0.90.1 (#58017) 2019-03-24 19:45:35 +01:00
hound.nix
i3wm.nix
icingaweb2.nix nixos/icingaweb: Fix module path; Add test 2019-07-07 03:03:59 +02:00
iftop.nix
incron.nix
influxdb.nix
initdb.nix postgresql: running initdb from command line now works (#65309) 2019-08-07 14:17:36 +03:00
initrd-network.nix
installer.nix Revert "installer: Disable udisks" 2019-10-16 20:31:24 -04:00
ipfs.nix
ipv6.nix nixos/network-interfaces: always apply privacy extensions 2019-06-07 21:43:29 +02:00
jackett.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
jellyfin.nix nixos/jellyfin: add simple test 2019-04-28 11:03:51 +02:00
jenkins.nix
kafka.nix kafka: Add 2.3 2019-10-02 07:37:44 -04:00
kernel-latest.nix
kernel-lts.nix
kernel-testing.nix linux: Fix kernel-testing test 2019-04-01 10:04:54 -04:00
kexec.nix
keymap.nix
knot.nix nixos/knot: add myself as maintainer for test 2019-11-05 16:19:44 +01:00
ldap.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
leaps.nix
lidarr.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
lightdm.nix nixosTests.lightdm: add me to maintainers 2019-08-06 20:51:44 -04:00
limesurvey.nix nixos/limesurvey: add basic nixos test 2019-05-28 23:02:38 -04:00
login.nix nixos/login: Port test to python 2019-11-04 23:51:09 +01:00
loki.nix nixos/tests/loki: port to python 2019-11-07 11:30:01 +01:00
magnetico.nix nixos/magnetico: add test 2019-08-28 14:19:24 +02:00
mailcatcher.nix nixos/mailcatcher: fix test to be compatible with mailcatcher 7.x series 2019-03-28 11:15:20 -04:00
make-test-python.nix nixos/test: Port test driver to python 2019-11-04 23:50:27 +01:00
make-test.nix
mathics.nix
matomo.nix nixos/matomo: add test 2019-10-29 21:02:39 +00:00
matrix-synapse.nix nixos/matrix-synapse: Port integration test to python 2019-11-05 18:07:04 +01:00
mediawiki.nix nixos/mediawiki: init service to replace httpd subservice 2019-07-23 22:02:33 -04:00
memcached.nix
mesos.nix
mesos_test.py
metabase.nix nixos/metabase: port test to python 2019-11-05 21:44:51 +01:00
minidlna.nix nixos/minidlna: Allow more configuration options 2019-09-17 19:51:33 +02:00
miniflux.nix miniflux: add service 2019-04-06 03:52:15 +02:00
minio.nix minio: init at 4.0.13 2019-03-29 15:50:36 +01:00
misc.nix
moinmoin.nix nixos/moin: init 2019-10-25 17:51:09 +02:00
mongodb.nix mongodb: Add authentication support 2019-05-25 18:09:30 +09:00
moodle.nix nixos/moodle: port test to python 2019-11-06 12:27:14 +01:00
morty.nix nixos/morty: port test to python 2019-11-06 07:58:22 +01:00
mosquitto.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
mpd.nix
mpich-example.c
mumble.nix nixos/tests/mumble: update test to use systemd-journal 2019-09-13 16:49:06 +02:00
munin.nix
mutable-users.nix
mxisd.nix nixos/mxisd: add support for ma1sd 2019-10-07 18:57:15 +02:00
mysql-backup.nix
mysql-replication.nix
mysql.nix nixos/mysql: test the mysql package, not just mariadb 2019-08-04 10:41:55 -04:00
nat.nix
ndppd.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
neo4j.nix
nesting.nix nixos: Make nesting.children work in NixOS tests 2019-05-29 12:50:49 +02:00
netdata.nix
networking-proxy.nix
networking.nix nixos/tests/{ferm,networking}: fix eval with networkd 2019-10-08 17:14:26 +02:00
nexus.nix
nfs.nix
nghttpx.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
nginx-sso.nix
nginx.nix nginx: expose generated config and allow nginx reloads (#57429) 2019-08-21 16:52:46 +03:00
nix-ssh-serve.nix
nixos-generate-config.nix nixos/nix-generate-config: port test to python 2019-11-05 12:00:26 +01:00
novacomd.nix
nsd.nix
nzbget.nix nixos/nzbget: fix broken service, add a nixos test, as well as some general improvements 2019-04-25 20:28:39 -04:00
openarena.nix openarena: add test 2019-10-26 00:57:54 +11:00
openldap.nix nixos/openldap: add new options 2019-04-01 17:24:33 +02:00
opensmtpd.nix
openssh.nix nixos/openssh: port test to python 2019-11-05 12:00:19 +01:00
openstack-image.nix
orangefs.nix nixos/orangefs: add test 2019-09-25 14:17:11 +02:00
os-prober.nix Revert "installer: Disable udisks" 2019-10-16 20:31:24 -04:00
osquery.nix nixos/tests: osquery: /var/run -> /run 2019-03-24 21:15:34 +01:00
osrm-backend.nix
overlayfs.nix
packagekit.nix nixosTests.packagekit: port to python 2019-11-06 19:18:28 -05:00
pam-oath-login.nix
pam-u2f.nix
pantheon.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
paperless.nix paperless service: init 2019-05-08 09:26:32 +02:00
partition.nix
pdns-recursor.nix tests/pdns-recursor: use waitForOpenPort as port check 2019-04-05 02:30:28 +01:00
peerflix.nix
pgjwt.nix nixos/tests/pgjwt: port to python 2019-11-07 11:30:02 +01:00
pgmanage.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
php-pcre.nix nixos/tests/php-pcre: replace usage of deprecated services.httpd.extraSubservices 2019-08-15 21:00:27 -04:00
plasma5.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
plotinus.nix
postgis.nix
postgresql-wal-receiver.nix nixos/postgresql-wal-receiver: add module (#63799) 2019-08-11 20:09:42 +03:00
postgresql.nix nixos/postgres: Port test to python 2019-11-04 23:51:09 +01:00
powerdns.nix nixos/powerdns: port test to python 2019-11-08 17:19:23 +01:00
pppd.nix nixos/pppd: port test to python 2019-11-08 17:11:11 +01:00
predictable-interface-names.nix networking.useDHCP: disallow for networkd 2019-09-24 10:20:16 +02:00
printing.nix nixos/printers: declarative configuration 2019-09-01 15:38:30 +02:00
prometheus-exporters.nix nixos/tests/prometheus-exporters: port to python 2019-11-07 11:30:55 +01:00
prometheus.nix nixos/tests: remove prometheus_1 test 2019-09-06 21:55:24 +02:00
proxy.nix
quagga.nix
rabbitmq.nix
radarr.nix nixos/radarr: port test to python 2019-11-06 15:56:04 +01:00
radicale.nix nixos/tests/radicale: be a bit more permissive when matching logs 2019-06-03 15:05:14 +02:00
redis.nix nixos/redis: port test to python 2019-11-06 15:57:56 +01:00
redmine.nix redmine: drop 3.4.x package 2019-10-26 10:40:16 -04:00
riak.nix
roundcube.nix nixos/roundcube: port test to python 2019-11-06 16:07:18 +01:00
rspamd.nix
rss2email.nix nixos/rss2email: port test to python 2019-11-06 16:18:24 +01:00
rsyslogd.nix
run-in-machine.nix
rxe.nix
samba.nix
sddm.nix
shiori.nix nixos/shiori: port test to python, do more tests 2019-11-08 17:54:49 +01:00
signal-desktop.nix nixos/signal-desktop: port test to python 2019-11-06 16:38:26 +01:00
simple.nix nixos/simple: port test to python 2019-11-05 12:00:26 +01:00
slim.nix
slurm.nix nixos/slurm: fix test 2019-06-05 14:14:46 +02:00
smokeping.nix nixos/smokeping: port test to python 2019-11-08 17:13:48 +01:00
snapper.nix nixos/snapper: port test to python 2019-11-06 12:44:51 +01:00
solr.nix solr: init at 8.0.0 2019-04-10 20:12:41 -04:00
sonarr.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ssh-keys.nix
strongswan-swanctl.nix nixos/strongswan-swanctl: port test to python 2019-11-06 12:43:08 +01:00
sudo.nix
switch-test.nix
syncthing-init.nix syncthing: 1.1.4 -> 1.2.1 2019-08-11 08:35:04 +07:00
syncthing-relay.nix
systemd-confinement.nix
systemd-networkd-wireguard.nix networking.useDHCP: disallow for networkd 2019-09-24 10:20:16 +02:00
systemd-timesyncd.nix nixos/systemd: migrate systemd-timesync state when required 2019-06-03 15:05:19 +02:00
systemd.nix nixos/tests/systemd: Fix x-initrd-mount flakiness (#67798) 2019-08-31 00:30:50 -04:00
taskserver.nix
telegraf.nix nixos/telegraf: port test to python 2019-11-06 12:40:43 +01:00
testdb.sql
tiddlywiki.nix nixos/tiddlywiki: init 2019-07-16 23:12:16 +01:00
timezone.nix
tinydns.nix nixos: add test for tinydns 2019-05-16 23:46:17 +02:00
tor.nix nixos/tor: port test to python 2019-11-05 12:00:26 +01:00
trac.nix nixos/trac: port test to python 2019-11-05 21:45:02 +01:00
transmission.nix nixos/transmission: port test to python 2019-11-05 12:00:26 +01:00
trezord.nix nixos/trezord: port test to python 2019-11-05 21:45:12 +01:00
trickster.nix nixos/trickster: port test to python 2019-11-06 07:17:39 +01:00
udisks2.nix nixosTests.udisks2: port to python 2019-11-06 19:18:28 -05:00
upnp.nix nixos/upnp: port test to python 2019-11-06 07:54:45 +01:00
uwsgi.nix nixos: add test for uwsgi 2019-05-27 23:03:22 +02:00
vault.nix nixos/vault: convert test to python 2019-11-05 16:57:08 +01:00
virtualbox.nix tests/virtualbox: Clean up unnecessary things. 2019-09-05 09:30:05 -04:00
wordpress.nix nixos/wordpress: generate secrets locally 2019-09-22 14:33:08 +02:00
xautolock.nix nixos/xautolock: port test to python 2019-11-06 12:30:29 +01:00
xfce.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
xfce4-14.nix nixos.tests: silence getfacl absolute path message 2019-10-11 23:20:57 +02:00
xmonad.nix xmonad: Fix test 2019-09-13 15:16:56 -04:00
xrdp.nix
xss-lock.nix nixos/xss-lock: add testcase for lockerCommand with several CLI options. 2019-05-12 03:22:29 +02:00
yabar.nix nixos/yabar: port test to python 2019-11-06 07:54:16 +01:00
yggdrasil.nix nixos/yggdrasil: add service 2019-10-26 13:51:31 +02:00
zfs.nix nixos/zfs: convert test to python 2019-11-04 23:51:10 +01:00
zookeeper.nix nixos/zookeeper: port test to python 2019-11-06 07:54:37 +01:00