]> git.proxmox.com Git - pve-manager.git/commit
ceph: introduce '/etc/pve/ceph'
authorMax Carrara <m.carrara@proxmox.com>
Tue, 2 Apr 2024 14:55:21 +0000 (16:55 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 11 Apr 2024 08:42:11 +0000 (10:42 +0200)
commita51a28e3cd86a4217d5ce0f75da426c746a31419
tree8ec77f2d384b10504ef6a6b52fb033c3de4a726a
parent0cc99840e041ef5e31f443b8b9fd7ec9c8f7a701
ceph: introduce '/etc/pve/ceph'

This commit adds the '/etc/pve/ceph' directory to our overall expected
Ceph configuration.

This directory is meant to store cluster-wide, non-private
configuration files used by Ceph applications and services that are
executed with lower privileges, such as 'ceph-crash.service'.

The existence of the directory is now also checked for when checking
whether Ceph is configured correctly. This makes it easier for our
other tooling to rely on the directory's existence, reducing the
number of otherwise needless frequent checking.

* For new clusters: `pveceph init` now creates '/etc/pve/ceph' when
  called.

* For existing clusters: The 'postinst' hook this commit adds ensures
  that '/etc/pve/ceph' is created when updating.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
PVE/API2/Ceph.pm
PVE/Ceph/Tools.pm
debian/postinst