stackhpc.cephadm.cephadm_ec_profile (1.15.1) — module

Manage Ceph Erasure Code profile

| "added in version" 1.4.0 of stackhpc.cephadm"

Authors: Guillaume Abrioux <gabrioux@redhat.com>, Michal Nasiadka <michal@stackhpc.com>

Install collection

Install with ansible-galaxy collection install stackhpc.cephadm:==1.15.1


Add to requirements.yml

  collections:
    - name: stackhpc.cephadm
      version: 1.15.1

Description

Manage Ceph Erasure Code profile

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: create an erasure code profile
  cephadm_ec_profile:
    name: foo
    k: 4
    m: 2
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete an erasure code profile
  cephadm_ec_profile:
    name: foo
    state: absent

Inputs

    
k:
    description:
    - Number of data-chunks the object will be split in
    required: false
    type: str

m:
    description:
    - Compute coding chunks for each object and store them on different OSDs.
    required: false
    type: str

name:
    description:
    - name of the profile.
    required: true
    type: str

state:
    choices:
    - present
    - absent
    default: present
    description: If 'present' is used, the module creates a profile. If 'absent' is used,
      the module will delete the profile.
    required: false
    type: str

plugin:
    description:
    - Use the erasure code plugin to compute coding chunks and recover missing chunks.
    required: false
    type: str

directory:
    description:
    - Set the directory name from which the erasure code plugin is loaded.
    required: false
    type: str

stripe_unit:
    description:
    - The amount of data in a data chunk, per stripe.
    required: false
    type: str

crush_device_class:
    description:
    - Restrict placement to devices of a specific class (hdd/ssd)
    required: false
    type: str