Appendix J. OSD Ansible settings
These are the most common configurable OSD Ansible parameters.
osd_auto_discovery
Automatically find empty devices to use as OSDs.
- Value
-
false
- Required
- No
- Notes
-
Cannot be used with
devices
. Cannot be used withpurge-docker-cluster.yml
orpurge-cluster.yml
. To use those playbooks, comment outosd_auto_discovery
and declare the OSD devices usingdevices
.
devices
List of devices where Ceph’s data is stored.
- Value
- User-defined
- Required
- Yes, if specifying a list of devices.
- Notes
-
Cannot be used when
osd_auto_discovery
setting is used. When using thedevices
option,ceph-volume lvm batch
mode creates the optimized OSD configuration.
dmcrypt
To encrypt the OSDs.
- Value
-
true
- Required
- No
- Notes
-
The default value is
false
.
lvm_volumes
A list of FileStore or BlueStore dictionaries.
- Value
- User-defined
- Required
-
Yes, if storage devices are not defined using the
devices
parameter. - Notes
-
Each dictionary must contain a
data
,journal
anddata_vg
keys. Any logical volume or volume group must be the name and not the full path. Thedata
, andjournal
keys can be a logical volume (LV) or partition, but do not use one journal for multipledata
LVs. Thedata_vg
key must be the volume group containing thedata
LV. Optionally, thejournal_vg
key can be used to specify the volume group containing the journal LV, if applicable.
osds_per_device
The number of OSDs to create per device.
- Value
- User-defined
- Required
- No
- Notes
-
The default value is
1
.
osd_objectstore
The Ceph object store type for the OSDs.
- Value
-
bluestore
orfilestore
- Required
- No
- Notes
-
The default value is
bluestore
. Required for upgrades.