This provides a profile for monitor instances in the context of a roles/profiles pattern. The roles/profiles pattern is a way to combine ceph manifests into functional units: Profiles combine multiple manifest to provide a single service. For example a ceph monitor server needs the repository, packages, configuration and finally the monitor service. Roles define sets of profiles to configure a specific server. For example an allinone role would install the monitor as well as an osd profile. The learn more have a look at: http://www.slideshare.net/PuppetLabs/roles-talk All configuration happens via hiera. Example hiera files are provided. Change-Id: If07d18cdb202706c8478570027e80a85c8159d31 NB: this uses hiera autoloading and will only work with Puppet >=3.0
31 lines
1.3 KiB
YAML
31 lines
1.3 KiB
YAML
---
|
|
######## Ceph
|
|
ceph::profile::params::release: 'firefly'
|
|
|
|
######## 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_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'
|
|
|
|
######## 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::admin_key: 'AQBMGHJTkC8HKhAAJ7NH255wYypgm1oVuV41MA=='
|
|
ceph::profile::params::admin_key_mode: '0600'
|
|
ceph::profile::params::bootstrap_osd_key: 'AQARG3JTsDDEHhAAVinHPiqvJkUi5Mww/URupw=='
|
|
ceph::profile::params::bootstrap_mds_key: 'AQCztJdSyNb0NBAASA2yPZPuwXeIQnDJ9O8gVw=='
|
|
ceph::profile::params::osds:
|
|
'/dev/sdc':
|
|
journal: '/dev/sdb1'
|
|
'/dev/sdd':
|
|
journal: '/dev/sdb2'
|
|
|