예제 #1
0
def zap(dev=None, **kwargs):
    '''
    Destroy the partition table and content of a given disk.

    .. code-block:: bash

        salt '*' ceph.osd_prepare 'dev'='/dev/vdc' \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'

    Notes:

    dev
        The block device to format.

    cluster_name
        Set the cluster name. Defaults to "ceph".

    cluster_uuid
        Set the cluster date will be added too. Defaults to the value found in
        local config.
    '''

    if dev is not None:
        log.warning("Depricated use of function, use kwargs")
    dev = kwargs.get("dev", dev)
    kwargs["dev"] = dev
    return ceph_cfg.zap(**kwargs)
예제 #2
0
def zap(target=None, **kwargs):
    '''
    Destroy the partition table and content of a given disk.

    .. code-block:: bash

        salt '*' ceph_cfg.osd_prepare 'dev'='/dev/vdc' \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'

    Notes:

    dev
        The block device to format.

    cluster_name
        Set the cluster name. Defaults to "ceph".

    cluster_uuid
        Set the cluster date will be added too. Defaults to the value found in
        local config.
    '''
    if target is not None:
        log.warning("Depricated use of function, use kwargs")
    target = kwargs.get("dev", target)
    kwargs["dev"] = target
    return ceph_cfg.zap(**kwargs)
예제 #3
0
def zap(dev=None, **kwargs):
    """
    Destroy the partition table and content of a given disk.
    """

    if dev is not None:
        log.warning("Depricated use of function, use kwargs")
    dev = kwargs.get("dev", dev)
    kwargs["dev"] = dev
    return ceph_cfg.zap(**kwargs)
예제 #4
0
파일: ceph.py 프로젝트: morinap/salt-1
def zap(target=None, **kwargs):
    '''
    Destroy the partition table and content of a given disk.

    .. code-block:: bash

        salt '*' ceph.osd_prepare 'dev'='/dev/vdc' \\
                'cluster_name'='ceph' \\
                'cluster_uuid'='cluster_uuid'

    dev
        The block device to format.

    cluster_name
        The cluster name. Defaults to ``ceph``.

    cluster_uuid
        The cluster UUID. Defaults to value found in ceph config file.
    '''
    if target is not None:
        log.warning("Depricated use of function, use kwargs")
    target = kwargs.get("dev", target)
    kwargs["dev"] = target
    return ceph_cfg.zap(**kwargs)