28e8f4525f
This resource type can be used for setting up cephfs, it expects FS name, data and metadata pool names as input parameters. Data and metadata pools should already exist. Change-Id: I18436a64fc991b9e697a1d79e369ac110cf8fe20 Partial-Bug: #1644784
59 lines
2.2 KiB
YAML
59 lines
2.2 KiB
YAML
---
|
|
######## Ceph
|
|
ceph::profile::params::release: 'jewel'
|
|
|
|
######## Ceph.conf
|
|
ceph::profile::params::fsid: '4b5c8c0a-ff60-454b-a1b4-9747aa737d19'
|
|
ceph::profile::params::authentication_type: 'cephx'
|
|
ceph::profile::params::mon_initial_members: 'first, second'
|
|
ceph::profile::params::mon_host: '10.11.12.2:6789, 10.11.12.3:6789'
|
|
ceph::profile::params::osd_journal_size: '4096'
|
|
ceph::profile::params::osd_pool_default_pg_num: '200'
|
|
ceph::profile::params::osd_pool_default_pgp_num: '200'
|
|
ceph::profile::params::osd_pool_default_size: '2'
|
|
ceph::profile::params::osd_pool_default_min_size: '1'
|
|
ceph::profile::params::cluster_network: '10.12.13.0/24'
|
|
ceph::profile::params::public_network: '10.11.12.0/24'
|
|
ceph::profile::params::osd_max_backfills: '1'
|
|
ceph::profile::params::osd_recovery_max_active: '1'
|
|
ceph::profile::params::osd_recovery_op_priority: '1'
|
|
ceph::profile::params::osd_recovery_max_single_start: '1'
|
|
ceph::profile::params::osd_max_scrubs: '1'
|
|
ceph::profile::params::osd_op_threads: '2'
|
|
ceph::profile::params::fs_name: 'fs_name'
|
|
ceph::profile::params::fs_metadata_pool: 'metadata_pool'
|
|
ceph::profile::params::fs_data_pool: 'data_pool'
|
|
|
|
######## Keys
|
|
ceph::profile::params::mon_key: 'AQATGHJTUCBqIBAA7M2yafV1xctn1pgr3GcKPg=='
|
|
# as an alternative to specifying the mon key you can provide an exising keyring
|
|
#ceph::profile::params::mon_keyring: '/etc/ceph/ceph.mon.keyring'
|
|
ceph::profile::params::client_keys:
|
|
'client.admin':
|
|
secret: 'AQBMGHJTkC8HKhAAJ7NH255wYypgm1oVuV41MA=='
|
|
mode: '0600'
|
|
cap_mon: 'allow *'
|
|
cap_osd: 'allow *'
|
|
cap_mds: 'allow *'
|
|
'client.bootstrap-osd':
|
|
secret: 'AQARG3JTsDDEHhAAVinHPiqvJkUi5Mww/URupw=='
|
|
keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring'
|
|
cap_mon: 'allow profile bootstrap-osd'
|
|
'client.bootstrap-mds':
|
|
secret: 'AQCztJdSyNb0NBAASA2yPZPuwXeIQnDJ9O8gVw=='
|
|
keyring_path: '/var/lib/ceph/bootstrap-mds/ceph.keyring'
|
|
cap_mon: 'allow profile bootstrap-mds'
|
|
'client.volumes':
|
|
secret: 'AQA4MPZTOGU0ARAAXH9a0fXxVq0X25n2yPREDw=='
|
|
mode: '0600'
|
|
user: 'cinder'
|
|
group: 'cinder'
|
|
cap_mon: 'allow r'
|
|
cap_osd: 'allow class-read object_prefix rbd_children, allow rwx pool=volumes'
|
|
|
|
ceph::profile::params::osds:
|
|
'/dev/sdc':
|
|
journal: '/dev/sdb'
|
|
'/dev/sdd':
|
|
journal: '/dev/sdb'
|