#cephfs_metadata: cephfs_metadata # name of the metadata pool for a given filesystem
#cephfs_pools:
-# - { name: "{{ cephfs_data }}", pgs: "" }
-# - { name: "{{ cephfs_metadata }}", pgs: "" }
+# - { name: "{{ cephfs_data }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
+# - { name: "{{ cephfs_metadata }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
## OSD options
#
#cephfs_metadata: cephfs_metadata # name of the metadata pool for a given filesystem
#cephfs_pools:
-# - { name: "{{ cephfs_data }}", pgs: "" }
-# - { name: "{{ cephfs_metadata }}", pgs: "" }
+# - { name: "{{ cephfs_data }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
+# - { name: "{{ cephfs_metadata }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
## OSD options
#
cephfs_metadata: cephfs_metadata # name of the metadata pool for a given filesystem
cephfs_pools:
- - { name: "{{ cephfs_data }}", pgs: "" }
- - { name: "{{ cephfs_metadata }}", pgs: "" }
+ - { name: "{{ cephfs_data }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
+ - { name: "{{ cephfs_metadata }}", pgs: "{{ hostvars[groups[mon_group_name][0]]['osd_pool_default_pg_num'] }}" }
## OSD options
#
- ceph_rhcs_cdn_debian_repo == 'https://customername:customerpasswd@rhcs.download.redhat.com'
- ceph_repository not in ['rhcs', 'dev', 'obs']
-- name: make sure pg num is set for cephfs pools
- fail:
- msg: "You must set pg num for your cephfs pools, see the cephfs_pools variable."
- with_items: "{{ cephfs_pools }}"
- when:
- - groups.get(mds_group_name, []) | length > 0
- - mon_group_name in group_names
- - item.pgs == ''
-
- name: make sure journal_size configured
debug:
msg: "WARNING: journal_size is configured to {{ journal_size }}, which is less than 5GB. This is not recommended and can lead to severe issues."
expected_num_objects: ""
openstack_pools:
- "{{ openstack_glance_pool }}"
- - "{{ openstack_cinder_pool }}"
-cephfs_pools:
-- { name: "{{ cephfs_data }}", pgs: "8" }
-- { name: "{{ cephfs_metadata }}", pgs: "8" }
\ No newline at end of file
+ - "{{ openstack_cinder_pool }}"
\ No newline at end of file
osd_pool_default_size: 1
devices:
- /dev/sda
- - /dev/sdb
-cephfs_pools:
- - { name: "{{ cephfs_data }}", pgs: "8" }
- - { name: "{{ cephfs_metadata }}", pgs: "8" }
\ No newline at end of file
+ - /dev/sdb
\ No newline at end of file
expected_num_objects: ""
openstack_pools:
- "{{ openstack_glance_pool }}"
- - "{{ openstack_cinder_pool }}"
-cephfs_pools:
- - { name: "{{ cephfs_data }}", pgs: "8" }
- - { name: "{{ cephfs_metadata }}", pgs: "8" }
\ No newline at end of file
+ - "{{ openstack_cinder_pool }}"
\ No newline at end of file
nfs_ganesha_stable_branch: V2.5-stable
nfs_ganesha_stable_deb_repo: "{{ ceph_mirror }}/nfs-ganesha/deb-{{ nfs_ganesha_stable_branch }}/{{ ceph_stable_release }}"
nfs_ganesha_dev: false
-nfs_ganesha_flavor: "ceph_master"
-cephfs_pools:
- - { name: "{{ cephfs_data }}", pgs: "8" }
- - { name: "{{ cephfs_metadata }}", pgs: "8" }
\ No newline at end of file
+nfs_ganesha_flavor: "ceph_master"
\ No newline at end of file