diff --git a/doc/source/configuration/cephadm.rst b/doc/source/configuration/cephadm.rst index e207dd5b7..0322482c0 100644 --- a/doc/source/configuration/cephadm.rst +++ b/doc/source/configuration/cephadm.rst @@ -239,6 +239,22 @@ for Cinder, Cinder backup, Glance, and Nova in Kolla Ansible. mgr: "profile rbd pool=images" state: present +Ceph Commands +~~~~~~~~~~~~~ + +It is possible to run an arbitrary list of commands against the cluster after deployment +by setting the ``cephadm_commands`` variable. ``cephadm_commands`` should be a list of commands +to pass to ``cephadm shell -- ceph``. For example: + +.. code:: yaml + + # A list of commands to pass to cephadm shell -- ceph. See stackhpc.cephadm.commands + # for format. + cephadm_commands: + # Configure Prometheus exporter to listen on a specific interface. The default + # is to listen on all interfaces. + - "config set mgr mgr/prometheus/server_addr 10.0.0.1" + Deployment ========== diff --git a/etc/kayobe/cephadm.yml b/etc/kayobe/cephadm.yml index f326b0ae1..4f5f0ed7c 100644 --- a/etc/kayobe/cephadm.yml +++ b/etc/kayobe/cephadm.yml @@ -60,6 +60,10 @@ cephadm_cluster_network: "{{ storage_mgmt_net_name | net_cidr }}" # List of Cephx keys. See stackhpc.cephadm.keys role for format. #cephadm_keys: +# A list of commands to pass to cephadm shell -- ceph. See stackhpc.cephadm.commands +# for format. +#cephadm_commands: + ############################################################################### # Kolla Ceph auto-configuration.