2014-03-04 02:08:51 +08:00
|
|
|
---
|
|
|
|
# Variables here are applicable to all host groups NOT roles
|
|
|
|
|
2016-02-29 23:35:07 +08:00
|
|
|
# This sample file generated by generate_group_vars_sample.sh
|
|
|
|
|
|
|
|
# Dummy variable to avoid error because ansible does not recognize the
|
|
|
|
# file as a good configuration file when no variable in it.
|
2014-06-25 23:03:29 +08:00
|
|
|
dummy:
|
|
|
|
|
2016-02-29 23:35:07 +08:00
|
|
|
# You can override default vars defined in defaults/main.yml here,
|
|
|
|
# but I would advice to use host or group vars instead
|
|
|
|
|
2015-08-27 18:42:01 +08:00
|
|
|
###########
|
|
|
|
# GENERAL #
|
|
|
|
###########
|
|
|
|
|
|
|
|
#fetch_directory: fetch/
|
|
|
|
|
2016-02-25 19:10:45 +08:00
|
|
|
# Even though OSD nodes should not have the admin key
|
|
|
|
# at their disposal, some people might want to have it
|
|
|
|
# distributed on OSD nodes. Setting 'copy_admin_key' to 'true'
|
|
|
|
# will copy the admin key to the /etc/ceph/ directory
|
|
|
|
#copy_admin_key: false
|
|
|
|
|
2015-01-09 01:27:43 +08:00
|
|
|
####################
|
|
|
|
# OSD CRUSH LOCATION
|
|
|
|
####################
|
|
|
|
|
|
|
|
# The following options will build a ceph.conf with OSD sections
|
|
|
|
# Example:
|
|
|
|
# [osd.X]
|
|
|
|
# osd crush location = "root=location"
|
|
|
|
#
|
|
|
|
# This works with your inventory file
|
|
|
|
# To match the following 'osd_crush_location' option the inventory must look like:
|
2015-01-07 05:47:49 +08:00
|
|
|
#
|
2015-01-09 01:27:43 +08:00
|
|
|
# [osds]
|
|
|
|
# osd0 ceph_crush_root=foo ceph_crush_rack=bar
|
|
|
|
|
2016-02-29 23:35:07 +08:00
|
|
|
#crush_location: false
|
|
|
|
#osd_crush_location: "'root={{ ceph_crush_root }} rack={{ ceph_crush_rack }} host={{ ansible_hostname }}'"
|
2015-01-09 01:27:43 +08:00
|
|
|
|
|
|
|
##############
|
|
|
|
# CEPH OPTIONS
|
|
|
|
##############
|
2015-01-07 05:47:49 +08:00
|
|
|
|
2016-02-29 23:35:07 +08:00
|
|
|
# ACTIVATE THE FSID VARIABLE FOR NON-VAGRANT DEPLOYMENT
|
|
|
|
#fsid: "{{ cluster_uuid.stdout }}"
|
2015-01-07 05:47:49 +08:00
|
|
|
#cephx: true
|
|
|
|
|
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
|
|
|
|
#
|
2015-01-07 05:47:49 +08:00
|
|
|
#devices:
|
|
|
|
# - /dev/sdb
|
|
|
|
# - /dev/sdc
|
|
|
|
|
|
|
|
# Device discovery is based on the Ansible fact 'ansible_devices'
|
|
|
|
# which reports all the devices on a system. If chosen all the disks
|
|
|
|
# found will be passed to ceph-disk. You should not be worried on using
|
|
|
|
# this option since ceph-disk has a built-in check which looks for empty devices.
|
|
|
|
# Thus devices with existing partition tables will not be used.
|
|
|
|
# This mode prevents you from filling out the 'devices' variable above.
|
|
|
|
#
|
|
|
|
#osd_auto_discovery: false
|
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
|
2015-01-07 05:47:49 +08:00
|
|
|
|
2015-07-04 00:38:30 +08:00
|
|
|
#journal_collocation: false
|
2014-03-07 21:04:25 +08:00
|
|
|
|
|
|
|
|
2016-07-19 23:55:57 +08:00
|
|
|
# II. N journal devices for N OSDs
|
2014-03-07 21:04:25 +08:00
|
|
|
# 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
|
2015-01-07 05:47:49 +08:00
|
|
|
#raw_journal_devices:
|
|
|
|
# - /dev/sdb
|
|
|
|
# - /dev/sdb
|
|
|
|
# - /dev/sdc
|
|
|
|
# - /dev/sdc
|
2016-02-29 23:35:07 +08:00
|
|
|
|
2014-07-03 21:30:49 +08:00
|
|
|
|
2016-07-19 23:55:57 +08:00
|
|
|
# III. Use directory instead of disk for OSDs
|
2014-07-03 21:30:49 +08:00
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
|
2014-07-08 18:24:18 +08:00
|
|
|
#osd_directory: false
|
2015-01-07 05:47:49 +08:00
|
|
|
#osd_directories:
|
|
|
|
# - /var/lib/ceph/osd/mydir1
|
|
|
|
# - /var/lib/ceph/osd/mydir2
|
2015-06-24 21:51:54 +08:00
|
|
|
|
|
|
|
|
2016-07-19 23:55:57 +08:00
|
|
|
# IV. This will partition disks for BlueStore
|
2016-03-25 21:15:29 +08:00
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
#bluestore: false
|
|
|
|
|
|
|
|
|
2016-07-19 23:55:57 +08:00
|
|
|
# V. Encrypt osd data and/or journal devices with dm-crypt.
|
|
|
|
# Keys are stored into the monitors k/v store
|
|
|
|
# Use 'true' to enable this scenario
|
|
|
|
# Both journal and data are stored on the same dm-crypt encrypted device
|
2016-08-10 16:34:23 +08:00
|
|
|
#dmcrypt_journal_collocation: false
|
2016-07-19 23:55:57 +08:00
|
|
|
|
|
|
|
|
|
|
|
# VI. Encrypt osd data and/or journal devices with dm-crypt.
|
2016-07-19 23:53:21 +08:00
|
|
|
# Keys are stored into the monitors k/v store
|
|
|
|
# Use 'true' to enable this scenario
|
2016-07-19 23:55:57 +08:00
|
|
|
# Journal and osd data are separated, each with their own dm-crypt device
|
|
|
|
# You must use raw_journal_devices and set your journal devices
|
|
|
|
#dmcrypt_dedicated_journal: false
|
2016-07-19 23:53:21 +08:00
|
|
|
|
|
|
|
|
2015-06-24 21:51:54 +08:00
|
|
|
##########
|
|
|
|
# DOCKER #
|
|
|
|
##########
|
|
|
|
|
2015-10-22 05:18:22 +08:00
|
|
|
#osd_containerized_deployment: false
|
2016-03-29 18:47:46 +08:00
|
|
|
#osd_containerized_deployment_with_kv: false
|
|
|
|
#kv_type: etcd
|
|
|
|
#kv_endpoint: 127.0.0.1
|
2016-07-12 18:15:22 +08:00
|
|
|
#kv_port: 4001
|
2016-06-03 23:32:02 +08:00
|
|
|
#ceph_osd_docker_prepare_env: "OSD_FORCE_ZAP=1"
|
2015-06-24 21:51:54 +08:00
|
|
|
#ceph_osd_docker_username: ceph
|
|
|
|
#ceph_osd_docker_imagename: daemon
|
2016-07-09 09:38:13 +08:00
|
|
|
#ceph_osd_docker_image_tag: latest
|
2016-08-23 23:24:40 +08:00
|
|
|
#ceph_osd_docker_extra_env: "CEPH_DAEMON=OSD_CEPH_DISK_ACTIVATE" # comma separated variables
|
2016-02-12 00:57:10 +08:00
|
|
|
#ceph_osd_docker_devices:
|
2015-07-28 22:05:35 +08:00
|
|
|
# - /dev/sdb
|
2016-03-22 23:58:20 +08:00
|
|
|
#ceph_docker_on_openstack: false
|
2016-02-29 23:35:07 +08:00
|
|
|
|