distrax.mons.ceph_mon class#

This holds the CephMon Class

class distrax.mons.ceph_mon.CephMON(folder='ceph')[source]#

Ceph Monitor Class.

This class contains all the methods required to create and remove a Ceph Monitor

To read more about the Ceph Monitor please see: https://docs.ceph.com/en/latest/glossary/#term-Ceph-Monitor

Examples

>>> mon = CephMON()
>>> mon = CephMON(folder="distrax")
create_mon(interface)[source]#

Create the Ceph Monitor daemon.

Parameters:

interface (str) – the network interface the cluster will be using.

Return type:

None

Examples

>>> mon.create_mon("lo")
remove_mon()[source]#

Remove the Ceph monitor.

Return type:

None

Examples

>>> mon.remove_mon()