Make cephfs mount not optional
This commit is contained in:
parent
d5eac571a4
commit
644d0d78ba
2 changed files with 11 additions and 1 deletions
|
@ -60,6 +60,14 @@
|
||||||
# Create the database
|
# Create the database
|
||||||
postgres.databases = [ "freshrss" ];
|
postgres.databases = [ "freshrss" ];
|
||||||
|
|
||||||
|
# Only run freshrss after ceph has been mounted
|
||||||
|
systemd.services.freshrss-config = {
|
||||||
|
after = [ "cephfs.mount" ];
|
||||||
|
};
|
||||||
|
systemd.services.nginx = {
|
||||||
|
after = [ "cephfs.mount" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Enable and configure the service
|
# Enable and configure the service
|
||||||
services.freshrss = {
|
services.freshrss = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -43,6 +43,8 @@
|
||||||
fileSystems."/cephfs" = {
|
fileSystems."/cephfs" = {
|
||||||
device = "vm@b9b22d11-3492-49a6-92b7-b36cdf0161fe.cephfs=/";
|
device = "vm@b9b22d11-3492-49a6-92b7-b36cdf0161fe.cephfs=/";
|
||||||
fsType = "ceph";
|
fsType = "ceph";
|
||||||
options = [ "nofail" ];
|
options = [
|
||||||
|
"nofail"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue