libvirt: Add argument to enable support for ceph rbd storage
This commit is contained in:
parent
82efd22fbc
commit
b32491fd3c
@ -7,6 +7,7 @@
|
|||||||
, curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode
|
, curl, libiconv, gmp, zfs, parted, bridge-utils, dmidecode
|
||||||
, enableXen ? false, xen ? null
|
, enableXen ? false, xen ? null
|
||||||
, enableIscsi ? false, openiscsi
|
, enableIscsi ? false, openiscsi
|
||||||
|
, enableCeph ? false, ceph
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -45,6 +46,8 @@ in stdenv.mkDerivation rec {
|
|||||||
xen
|
xen
|
||||||
] ++ optionals enableIscsi [
|
] ++ optionals enableIscsi [
|
||||||
openiscsi
|
openiscsi
|
||||||
|
] ++ optionals enableCeph [
|
||||||
|
ceph
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
libiconv gmp
|
libiconv gmp
|
||||||
];
|
];
|
||||||
@ -85,6 +88,8 @@ in stdenv.mkDerivation rec {
|
|||||||
"--with-storage-zfs"
|
"--with-storage-zfs"
|
||||||
] ++ optionals enableIscsi [
|
] ++ optionals enableIscsi [
|
||||||
"--with-storage-iscsi"
|
"--with-storage-iscsi"
|
||||||
|
] ++ optionals enableCeph [
|
||||||
|
"--with-storage-rbd"
|
||||||
] ++ optionals stdenv.isDarwin [
|
] ++ optionals stdenv.isDarwin [
|
||||||
"--with-init-script=none"
|
"--with-init-script=none"
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user