2014-07-08 20:49:46 +08:00
|
|
|
---
|
|
|
|
# You can override default vars defined in defaults/main.yml here,
|
2014-11-06 00:57:28 +08:00
|
|
|
# but I would advice to use host or group vars instead
|
2014-09-05 03:14:11 +08:00
|
|
|
|
|
|
|
## Ceph options
|
|
|
|
#
|
|
|
|
|
|
|
|
# ACTIVATE THE FSID VARIABLE FOR NON-VAGRANT DEPLOYMENT
|
|
|
|
# fsid:
|
|
|
|
cephx: true
|
|
|
|
|
|
|
|
# Devices to be used as OSDs
|
|
|
|
# You can pre-provision disks that are not present yet.
|
|
|
|
# Ansible will just skip them. Newly added disk will be
|
|
|
|
# automatically configured during the next run.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# !! WARNING !!
|
|
|
|
#
|
|
|
|
# /!\ ENABLE ONLY ONE SCENARIO AT A TIME /!\
|
|
|
|
#
|
|
|
|
# !! WARNING !!
|
|
|
|
|
|
|
|
|
|
|
|
# Declare devices
|
|
|
|
# All the scenarii inherit from the following device declaration
|
|
|
|
#
|
2014-11-06 00:57:28 +08:00
|
|
|
devices:
|
2014-09-05 03:14:11 +08:00
|
|
|
- /dev/sdb
|
|
|
|
- /dev/sdc
|
|
|
|
- /dev/sdd
|
|
|
|
- /dev/sde
|
|
|
|
|
|
|
|
|
|
|
|
# I. First scenario: journal and osd_data on the same device
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
# This will collocate both journal and data on the same disk
|
|
|
|
# creating a partition at the beginning of the device
|
|
|
|
|
|
|
|
journal_collocation: true
|
|
|
|
|
|
|
|
|
|
|
|
# II. Second scenario: single journal device for N OSDs
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
|
|
|
|
# deprecated, please use scenario III with a single raw_journal_device
|
|
|
|
|
|
|
|
|
|
|
|
# III. Third scenario: N journal devices for N OSDs
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
#
|
|
|
|
# In the following example:
|
|
|
|
# * sdd and sde will get sdb as a journal
|
|
|
|
# * sdf and sdg will get sdc as a journal
|
|
|
|
# While starting you have 2 options:
|
|
|
|
# 1. Pre-allocate all the devices
|
|
|
|
# 2. Progressively add new devices
|
|
|
|
|
|
|
|
raw_multi_journal: false
|
|
|
|
raw_journal_devices:
|
|
|
|
- /dev/sdb
|
|
|
|
- /dev/sdb
|
|
|
|
- /dev/sdc
|
|
|
|
- /dev/sdc
|
|
|
|
|
|
|
|
|
|
|
|
# IV. Fourth scenario: use directory instead of disk for OSDs
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
|
|
|
|
osd_directory: false
|
2014-11-06 00:57:28 +08:00
|
|
|
osd_directories:
|
|
|
|
- /var/lib/ceph/osd/mydir1
|
|
|
|
- /var/lib/ceph/osd/mydir2
|
|
|
|
- /var/lib/ceph/osd/mydir3
|
|
|
|
- /var/lib/ceph/osd/mydir4
|