server7: docker-containers.ceph-osd-7?
This commit is contained in:
parent
a3db001870
commit
7e01c98da2
|
@ -100,6 +100,22 @@ in {
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
docker-containers.ceph-osd-7 = {
|
||||||
|
cmd = [ "ceph-osd" "-i" "7" "--setuser" "ceph" "--setgroup" "ceph" "-d" ];
|
||||||
|
environment = { OSD_DEVICE = "/dev/sdb"; };
|
||||||
|
image = "ceph/ceph:v14.2.9";
|
||||||
|
log-driver = "journald";
|
||||||
|
extraDockerOptions =
|
||||||
|
[ "--rm" "--net=host" "--ipc=host" "--privileged=true" ];
|
||||||
|
volumes =
|
||||||
|
[ "/dev:/dev" "/etc/ceph:/etc/ceph" "/var/lib/ceph/:/var/lib/ceph" ];
|
||||||
|
};
|
||||||
|
# systemd.services.docker-ceph-osd-7.serviceConfig = {
|
||||||
|
# ExecStartPre = ["mount | grep ^/var/lib/ceph/osd/ceph-7 || mount -t tmpfs tmpfs /var/lib/ceph/osd/ceph-7"
|
||||||
|
# ''docker run --rm --net=host --ipc=host --privileged=true -v /dev:/dev -v /etc/ceph:/etc/ceph -v /var/lib/ceph/:/var/lib/ceph -e OSD_DEVICE=/dev/sdb -it ceph/ceph:v14.2.9 ceph-volume lvm activate --all''
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
firewall.trustedInterfaces = [ "br0" ];
|
firewall.trustedInterfaces = [ "br0" ];
|
||||||
|
|
Loading…
Reference in New Issue