示例#1
0
文件: ceph.py 项目: morinap/salt-1
def mon_quorum(**kwargs):
    '''
    Returns ``True`` if the mon daemon is in the quorum, otherwise ``False``

    CLI Example:

    .. code-block:: bash

        salt '*' ceph.mon_quorum \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'

    cluster_uuid
        The cluster UUID. Defaults to value found in ceph config file.

    cluster_name
        The cluster name. Defaults to ``ceph``.
    '''
    return ceph_cfg.mon_quorum(**kwargs)
示例#2
0
def mon_quorum(**kwargs):
    '''
    Is mon deamon in quorum

    CLI Example:

    .. code-block:: bash

        salt '*' ceph.mon_quorum \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'
    Notes:

    cluster_uuid
        Set the cluster UUID. Defaults to value found in ceph config file.

    cluster_name
        Set the cluster name. Defaults to "ceph".
    '''
    return ceph_cfg.mon_quorum(**kwargs)
示例#3
0
文件: ceph.py 项目: bryson/salt
def mon_quorum(**kwargs):
    '''
    Is mon deamon in quorum

    CLI Example:

    .. code-block:: bash

        salt '*' ceph.mon_quorum \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'
    Notes:

    cluster_uuid
        Set the cluster UUID. Defaults to value found in ceph config file.

    cluster_name
        Set the cluster name. Defaults to "ceph".
    '''
    return ceph_cfg.mon_quorum(**kwargs)