This role executes arbitrary commands against a Ceph cluster using cephadm
.
- The role assumes target hosts connection over SSH with user that has passwordless sudo configured.
- Either direct Internet access or private registry with desired Ceph image accessible to all hosts is required.
This role assumes the existence of the following groups:
mons
with at least one host in it - see the cephadm
role for more details.
-
cephadm_command
: The command to use with the list of commands to execute - defaults toceph
, but can be any command found in thequay.io/ceph/ceph:<tag>
image. Example:cephadm_command: radosgw-admin
-
cephadm_commands
: A list of commands to pass tocephadm shell -- {{ cephadm_command }}
Example:cephadm_commands: - "fs new cephfs cephfs_metadata cephfs_data" - "orch apply mds cephfs --placement 3"
-
cephadm_commands_until
A expression to evaluate to allow retrying commands. May reference the registered result variable,cephadm_commands_result
. Default istrue
(do not use retries). -
cephadm_commands_retries
: Number of retries to use withcephadm_commands_until
. Default is 0. -
cephadm_commands_delay
: Delay between retries withcephadm_commands_until
. Default is 0.