2014-03-04 02:08:51 +08:00
|
|
|
---
|
|
|
|
# Variables here are applicable to all host groups NOT roles
|
|
|
|
#
|
|
|
|
|
2014-06-25 23:03:29 +08:00
|
|
|
# Dummy variable to avoid error because ansible does not recognize the file as a good configuration file when no variable in it.
|
|
|
|
dummy:
|
|
|
|
|
2014-03-04 02:08:51 +08:00
|
|
|
# Devices to be used as OSDs
|
2014-03-06 18:12:25 +08:00
|
|
|
# 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.
|
|
|
|
#
|
2014-03-04 02:08:51 +08:00
|
|
|
|
2014-03-07 21:04:25 +08:00
|
|
|
|
|
|
|
# !! WARNING !!
|
|
|
|
#
|
|
|
|
# /!\ ENABLE ONLY ONE SCENARIO AT A TIME /!\
|
|
|
|
#
|
|
|
|
# !! WARNING !!
|
|
|
|
|
|
|
|
|
|
|
|
# Declare devices
|
|
|
|
# All the scenarii inherit from the following device declaration
|
|
|
|
#
|
2014-06-25 22:51:28 +08:00
|
|
|
#devices: [ '/dev/sdb', '/dev/sdc', '/dev/sdd', '/dev/sde']
|
2014-03-07 21:04:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
2014-03-04 02:08:51 +08:00
|
|
|
# creating a partition at the beginning of the device
|
|
|
|
#
|
2014-06-25 22:51:28 +08:00
|
|
|
#journal_collocation: true
|
2014-03-07 21:04:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
# II. Second scenario: single journal device for N OSDs
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
#
|
2014-06-25 22:51:28 +08:00
|
|
|
#raw_journal: false
|
|
|
|
#raw_journal_device: /dev/sdb
|
2014-03-07 21:04:25 +08:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2014-06-25 22:51:28 +08:00
|
|
|
#raw_multi_journal: false
|
|
|
|
#raw_journal_devices: [ '/dev/sdb', '/dev/sdb', '/dev/sdc', '/dev/sdc' ]
|
2014-07-03 21:30:49 +08:00
|
|
|
|
|
|
|
|
|
|
|
# IV. Fourth scenario: use directory instead of disk for OSDs
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
|
2014-07-08 18:24:18 +08:00
|
|
|
#osd_directory: false
|
|
|
|
#osd_directories: [ '/var/lib/ceph/osd/mydir1', '/var/lib/ceph/osd/mydir2', '/var/lib/ceph/osd/mydir3', '/var/lib/ceph/osd/mydir4']
|