mirror of https://github.com/ceph/ceph-ansible.git
commit
61eebb526a
|
@ -53,6 +53,7 @@ ansible_provision = proc do |ansible|
|
||||||
ansible.extra_vars = {
|
ansible.extra_vars = {
|
||||||
fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45',
|
fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45',
|
||||||
monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==',
|
monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==',
|
||||||
|
journal_size: 100,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
ansible.limit = 'all'
|
ansible.limit = 'all'
|
||||||
|
|
|
@ -72,7 +72,7 @@ dummy:
|
||||||
|
|
||||||
## OSD options
|
## OSD options
|
||||||
#
|
#
|
||||||
#journal_size: 100
|
#journal_size: 0
|
||||||
#pool_default_pg_num: 128
|
#pool_default_pg_num: 128
|
||||||
#pool_default_pgp_num: 128
|
#pool_default_pgp_num: 128
|
||||||
#pool_default_size: 2
|
#pool_default_size: 2
|
||||||
|
|
|
@ -83,7 +83,7 @@ mon_osd_report_timeout: 300
|
||||||
|
|
||||||
## OSD options
|
## OSD options
|
||||||
#
|
#
|
||||||
journal_size: 100
|
journal_size: 0
|
||||||
pool_default_pg_num: 128
|
pool_default_pg_num: 128
|
||||||
pool_default_pgp_num: 128
|
pool_default_pgp_num: 128
|
||||||
pool_default_size: 2
|
pool_default_size: 2
|
||||||
|
|
|
@ -35,6 +35,10 @@
|
||||||
register: cluster_uuid
|
register: cluster_uuid
|
||||||
changed_when: False
|
changed_when: False
|
||||||
|
|
||||||
|
- name: Make sure journal_size configured
|
||||||
|
fail: msg="journal_size must be configured. See http://ceph.com/docs/master/rados/configuration/osd-config-ref/"
|
||||||
|
when: journal_size|int == 0
|
||||||
|
|
||||||
- name: Generate Ceph configuration file
|
- name: Generate Ceph configuration file
|
||||||
template: >
|
template: >
|
||||||
src=ceph.conf.j2
|
src=ceph.conf.j2
|
||||||
|
|
Loading…
Reference in New Issue