pve-manager/PVE/API2/Makefile
Thomas Lamprecht b82649cc52 ceph: add MDS create/delete/list API
Allow to create, list and destroy and Ceph Metadata Server (MDS) over
the API and the CLI `pveceph` tool.

Besides setting up the local systemd service template and the MDS
data directory we also add a reference to the MDS in the ceph.conf
We note the backing host (node) from the respective MDS and set up a
'mds standby for name' = 'pve' so that the PVE created ones are a
single group. If we decide to add integration for rank/path specific
MDS (possible useful for CephFS with quite a bit of load) then this
may help as a starting point.

On create, check early if a reference already exists in ceph.conf and
abort in that case. If we only see existing data directories later
on we abort but do not remove them, they could well be from an older
manual create - where it's possible dangerous to just remove it. Let
the user handle it themself in that case.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Co-authored-by: Alwin Antreich <a.antreich@proxmox.com>
2018-11-23 13:33:12 +01:00

39 lines
667 B
Makefile

include ../../defines.mk
SUBDIRS=Hardware Ceph
PERLSOURCE = \
Replication.pm \
ReplicationConfig.pm \
Ceph.pm \
APT.pm \
Subscription.pm \
VZDump.pm \
Backup.pm \
Cluster.pm \
HAConfig.pm \
Nodes.pm \
Pool.pm \
Tasks.pm \
Network.pm \
Certificates.pm \
ACME.pm \
ACMEAccount.pm \
NodeConfig.pm \
Scan.pm \
Hardware.pm \
Services.pm
all:
.PHONY: clean
clean:
rm -rf *~
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
.PHONY: install
install: ${PERLSOURCE}
install -d ${PERLLIBDIR}/PVE/API2
install -m 0644 ${PERLSOURCE} ${PERLLIBDIR}/PVE/API2
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done