2014-03-04 02:08:51 +08:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
|
|
|
|
[global]
|
|
|
|
{% if cephx %}
|
|
|
|
auth cluster required = cephx
|
|
|
|
auth service required = cephx
|
|
|
|
auth client required = cephx
|
2014-08-30 08:26:40 +08:00
|
|
|
cephx require signatures = {{ cephx_require_signatures }}
|
|
|
|
cephx cluster require signatures = {{ cephx_require_signatures }}
|
|
|
|
cephx service require signatures = {{ cephx_service_require_signatures }}
|
2014-03-04 02:08:51 +08:00
|
|
|
{% else %}
|
|
|
|
auth cluster required = none
|
|
|
|
auth service required = none
|
|
|
|
auth client required = none
|
|
|
|
auth supported = none
|
|
|
|
{% endif %}
|
|
|
|
fsid = {{ fsid }}
|
|
|
|
osd pool default pg num = {{ pool_default_pg_num }}
|
|
|
|
osd pool default pgp num = {{ pool_default_pgp_num }}
|
|
|
|
osd pool default size = {{ pool_default_size }}
|
|
|
|
osd pool default min size = {{ pool_default_min_size }}
|
|
|
|
osd pool default crush rule = {{ pool_default_crush_rule }}
|
2014-05-01 07:24:20 +08:00
|
|
|
{% if common_single_host_mode is defined %}
|
|
|
|
osd crush chooseleaf type = 0
|
|
|
|
{% endif %}
|
2014-08-30 08:26:40 +08:00
|
|
|
{% if disable_in_memory_logs %}
|
|
|
|
# Disable in-memory logs
|
|
|
|
debug_lockdep = 0/0
|
|
|
|
debug_context = 0/0
|
|
|
|
debug_crush = 0/0
|
|
|
|
debug_buffer = 0/0
|
|
|
|
debug_timer = 0/0
|
|
|
|
debug_filer = 0/0
|
|
|
|
debug_objecter = 0/0
|
|
|
|
debug_rados = 0/0
|
|
|
|
debug_rbd = 0/0
|
|
|
|
debug_journaler = 0/0
|
|
|
|
debug_objectcatcher = 0/0
|
|
|
|
debug_client = 0/0
|
|
|
|
debug_osd = 0/0
|
|
|
|
debug_optracker = 0/0
|
|
|
|
debug_objclass = 0/0
|
|
|
|
debug_filestore = 0/0
|
|
|
|
debug_journal = 0/0
|
|
|
|
debug_ms = 0/0
|
|
|
|
debug_monc = 0/0
|
|
|
|
debug_tp = 0/0
|
|
|
|
debug_auth = 0/0
|
|
|
|
debug_finisher = 0/0
|
|
|
|
debug_heartbeatmap = 0/0
|
|
|
|
debug_perfcounter = 0/0
|
|
|
|
debug_asok = 0/0
|
|
|
|
debug_throttle = 0/0
|
|
|
|
debug_mon = 0/0
|
|
|
|
debug_paxos = 0/0
|
|
|
|
debug_rgw = 0/0
|
|
|
|
{% endif %}
|
2014-03-04 02:08:51 +08:00
|
|
|
[mon]
|
2014-04-11 20:07:37 +08:00
|
|
|
mon osd down out interval = {{ mon_osd_down_out_interval }}
|
2014-04-18 16:47:30 +08:00
|
|
|
mon osd min down reporters = {{ mon_osd_min_down_reporters }}
|
2014-03-04 02:08:51 +08:00
|
|
|
{% for host in groups['mons'] %}
|
2014-03-12 22:34:54 +08:00
|
|
|
{% if hostvars[host]['ansible_hostname'] is defined %}
|
2014-03-04 02:08:51 +08:00
|
|
|
[mon.{{ hostvars[host]['ansible_hostname'] }}]
|
|
|
|
host = {{ hostvars[host]['ansible_hostname'] }}
|
2014-03-11 00:23:41 +08:00
|
|
|
mon addr = {{ hostvars[host]['ansible_' + monitor_interface ]['ipv4']['address'] }}
|
2014-03-12 22:34:54 +08:00
|
|
|
{% endif %}
|
2014-03-04 02:08:51 +08:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
[osd]
|
|
|
|
osd mkfs type = {{ osd_mkfs_type }}
|
2014-08-30 08:26:40 +08:00
|
|
|
osd mkfs options xfs = {{ osd_mkfs_options_xfs }}
|
|
|
|
osd mount options xfs = {{ osd_mount_options_xfs }}
|
2014-03-04 02:08:51 +08:00
|
|
|
osd journal size = {{ journal_size }}
|
|
|
|
{% if cluster_network is defined %}
|
|
|
|
cluster_network = {{ cluster_network }}
|
|
|
|
{% endif %}
|
|
|
|
{% if public_network is defined %}
|
|
|
|
public_network = {{ public_network }}
|
|
|
|
{% endif %}
|
2014-04-11 20:07:37 +08:00
|
|
|
osd mon heartbeat interval = {{ osd_mon_heartbeat_interval }}
|
|
|
|
# Performance tuning
|
|
|
|
filestore merge threshold = {{ filestore_merge_threshold }}
|
|
|
|
filestore split multiple = {{ filestore_split_multiple }}
|
|
|
|
osd op threads = {{ osd_op_threads }}
|
2014-08-30 08:26:40 +08:00
|
|
|
filestore op threads = {{ filestore_op_threads }}
|
|
|
|
filestore max sync interval = {{ filestore_max_sync_interval }}
|
|
|
|
osd max scrubs = {{ osd_max_scrubs }}
|
2014-04-11 20:07:37 +08:00
|
|
|
# Recovery tuning
|
|
|
|
osd recovery max active = {{ osd_recovery_max_active }}
|
|
|
|
osd max backfills = {{ osd_max_backfills }}
|
|
|
|
osd recovery op priority = {{ osd_recovery_op_priority }}
|
2014-08-30 08:26:40 +08:00
|
|
|
osd objectstore = {{ osd_objectstore }}
|
2014-03-11 00:14:11 +08:00
|
|
|
{% if mds %}
|
2014-03-04 02:08:51 +08:00
|
|
|
[mds]
|
|
|
|
{% for host in groups['mdss'] %}
|
2014-03-12 23:13:06 +08:00
|
|
|
{% if hostvars[host]['ansible_hostname'] is defined %}
|
2014-03-04 02:08:51 +08:00
|
|
|
[mds.{{ hostvars[host]['ansible_hostname'] }}]
|
|
|
|
host = {{ hostvars[host]['ansible_hostname'] }}
|
2014-03-12 23:13:06 +08:00
|
|
|
{% endif %}
|
2014-03-04 02:08:51 +08:00
|
|
|
{% endfor %}
|
2014-03-11 00:14:11 +08:00
|
|
|
{% endif %}
|
2014-03-06 20:54:37 +08:00
|
|
|
|
|
|
|
{% if radosgw %}
|
2014-03-19 19:40:02 +08:00
|
|
|
{% for host in groups['rgws'] %}
|
2014-03-20 19:14:43 +08:00
|
|
|
{% if hostvars[host]['ansible_hostname'] is defined %}
|
2014-03-19 23:29:57 +08:00
|
|
|
[client.radosgw.gateway]
|
2014-04-07 18:06:24 +08:00
|
|
|
{% if radosgw_dns_name is defined %}
|
|
|
|
rgw dns name = {{ radosgw_dns_name }}
|
|
|
|
{% endif %}
|
2014-03-26 18:26:18 +08:00
|
|
|
host = {{ hostvars[host]['ansible_hostname'] }}
|
2014-03-06 20:54:37 +08:00
|
|
|
keyring = /etc/ceph/keyring.radosgw.gateway
|
|
|
|
rgw socket path = /tmp/radosgw.sock
|
|
|
|
log file = /var/log/ceph/radosgw.log
|
|
|
|
rgw data = /var/lib/ceph/radosgw/{{ hostvars[host]['ansible_hostname'] }}
|
|
|
|
rgw print continue = false
|
2014-03-20 19:14:43 +08:00
|
|
|
{% endif %}
|
2014-03-19 19:40:02 +08:00
|
|
|
{% endfor %}
|
2014-03-06 20:54:37 +08:00
|
|
|
{% endif %}
|