community.proxmox.proxmox_ceph_pool module – Manage Ceph Pool.
Note
This module is part of the community.proxmox collection (version 2.0.0).
You might already have this collection installed if you are using the ansible package.
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.proxmox.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.proxmox.proxmox_ceph_pool.
New in community.proxmox 2.0.0
Synopsis
Add, edit or delete pool of a ceph cluster.
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >= 2.3
requests
Parameters
Parameter |
Comments |
|---|---|
Add the new pool to the cluster storage configuration. Choices:
|
|
Specify the target host of the Proxmox VE cluster. Uses the |
|
Specify the OTP. Uses the |
|
Specify the password to authenticate with. Uses the |
|
Specify the target port of the Proxmox VE cluster. Uses the |
|
Time limit for requests towards the Proxmox VE API. Default: |
|
Specify the token ID. Uses the |
|
Specify the token secret. Uses the |
|
Specify the user to authenticate with. Uses the |
|
Path to a local certificate, which will be used to verify TLS connections. Ignored if |
|
The rule to use for mapping object placement in the cluster. |
|
Minimum number of replicas per object. |
|
The name of the pool. It must be unique. |
|
The cluster node name. |
|
The automatic placement groups scaling mode of the pool. Choices:
|
|
Number of placement groups. |
|
Minimal number of placement groups. |
|
Number of replicas per object. |
|
Indicate whether the Ceph pool should be present (created if missing) or absent (deleted if it exists). Choices:
|
|
The estimated target size of the pool for the placement groups autoscaler. |
|
The estimated target ratio of the pool for the placement groups autoscaler. |
|
Timeout for operations. Default: |
|
Validate the TLS certificates used for the connection to the Proxmox VE API. May be set through the environment variable Choices:
|
Attributes
Attribute |
Support |
Description |
|---|---|---|
Action group: community.proxmox.proxmox |
Use |
|
Support: full This action does not modify state. |
Can run in |
|
Support: none This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
See Also
See also
- Authentication
Complete guide for the Proxmox API authentication
Examples
- name: Add a ceph pool
community.proxmox.proxmox_ceph_pool:
api_host: proxmox
api_user: root@pam
api_password: secret
node: proxmox
name: ceph-pool
state: present
- name: Add a ceph pool and storage
community.proxmox.proxmox_ceph_pool:
api_host: proxmox
api_user: root@pam
api_password: secret
node: proxmox
name: ceph-pool
state: present
add_storages: true
- name: Delete a ceph pool
community.proxmox.proxmox_ceph_pool:
api_host: proxmox
api_user: root@pam
api_password: secret
node: proxmox
name: ceph-pool
state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
The output message that the module generates. Returned: always |