2016-02-29 23:35:07 +08:00
---
# You can override vars by using host or group vars
###########
# GENERAL #
###########
mon_group_name : mons
# ACTIVATE BOTH FSID AND MONITOR_SECRET VARIABLES FOR NON-VAGRANT DEPLOYMENT
monitor_secret : "{{ monitor_keyring.stdout }}"
2017-07-05 17:07:00 +08:00
admin_secret : 'admin_secret'
2016-02-29 23:35:07 +08:00
# Secure your cluster
# This will set the following flags on all the pools:
# * nosizechange
# * nopgchange
# * nodelete
secure_cluster : false
secure_cluster_flags :
- nopgchange
- nodelete
- nosizechange
2019-02-28 00:40:36 +08:00
client_admin_ceph_authtool_cap :
mon : allow *
osd : allow *
mds : allow *
mgr : allow *
2017-06-12 16:36:29 +08:00
2017-10-12 20:55:53 +08:00
2016-02-29 23:35:07 +08:00
##########
# DOCKER #
##########
2017-07-07 21:48:53 +08:00
2017-09-06 16:53:30 +08:00
# Resource limitation
# For the whole list of limits you can apply see: docs.docker.com/engine/admin/resource_constraints
# Default values are based from: https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/2/html/red_hat_ceph_storage_hardware_guide/minimum_recommendations
2021-03-03 22:43:50 +08:00
ceph_mon_docker_memory_limit : "{{ ansible_facts['memtotal_mb'] }}m"
2017-09-06 16:53:30 +08:00
ceph_mon_docker_cpu_limit : 1
2019-01-09 20:23:07 +08:00
ceph_mon_container_listen_port : 3300
2017-09-06 16:53:30 +08:00
2024-03-03 05:06:14 +08:00
# Use this variable to modify the configuration to run your mon container.
2016-03-31 22:39:02 +08:00
mon_docker_privileged : false
mon_docker_net_host : true
2016-11-03 17:16:33 +08:00
ceph_config_keys : [ ] # DON'T TOUCH ME
2024-03-03 05:06:14 +08:00
# If you want to add parameters, you should retain the existing ones and include the new ones.
ceph_mon_container_params :
volumes :
- /var/lib/ceph/mon:/var/lib/ceph/mon:z,rshared
args :
- -f
- --default-mon-cluster-log-to-file=false
- --default-mon-cluster-log-to-stderr=true
- -i={{ monitor_name }}
- --mon-data=/var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }}
2024-02-16 21:20:22 +08:00
- --public-addr={{ _monitor_addresses[inventory_hostname] }}
2024-03-06 20:32:57 +08:00
- --mon-initial-members={{ groups[mon_group_name] | map('extract', hostvars, 'ansible_facts') | map(attribute='hostname') | join(',') }}
2017-07-05 21:47:48 +08:00
###########
# SYSTEMD #
###########
# ceph_mon_systemd_overrides will override the systemd settings
# for the ceph-mon services.
# For example,to set "PrivateDevices=false" you can specify:
2024-02-14 18:14:02 +08:00
# ceph_mon_systemd_overrides:
# Service:
# PrivateDevices: false