Merge "Add CephConfigOverrides to allow arbitrary configs in ceph.conf"

This commit is contained in:
Jenkins 2017-09-08 09:53:05 +00:00 committed by Gerrit Code Review
commit 78fa1a74fb
3 changed files with 20 additions and 11 deletions

View File

@ -106,6 +106,7 @@ parameter_defaults:
- /dev/loop3 - /dev/loop3
journal_size: 512 journal_size: 512
journal_collocation: true journal_collocation: true
osd_scenario: collocated
CephAnsibleExtraConfig: CephAnsibleExtraConfig:
ceph_conf_overrides: ceph_conf_overrides:
global: global:

View File

@ -58,6 +58,10 @@ parameters:
type: string type: string
description: List of ceph-ansible tags to skip description: List of ceph-ansible tags to skip
default: 'package-install,with_pkg' default: 'package-install,with_pkg'
CephConfigOverrides:
type: json
description: Extra config settings to dump into ceph.conf
default: {}
CephClusterFSID: CephClusterFSID:
type: string type: string
description: The Ceph cluster FSID. Must be a UUID. description: The Ceph cluster FSID. Must be a UUID.
@ -268,7 +272,8 @@ outputs:
keys: *openstack_keys keys: *openstack_keys
pools: [] pools: []
ceph_conf_overrides: ceph_conf_overrides:
global: map_merge:
- global:
osd_pool_default_size: {get_param: CephPoolDefaultSize} osd_pool_default_size: {get_param: CephPoolDefaultSize}
osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum} osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum}
rgw_keystone_api_version: 3 rgw_keystone_api_version: 3
@ -279,6 +284,7 @@ outputs:
rgw_keystone_admin_user: swift rgw_keystone_admin_user: swift
rgw_keystone_admin_password: {get_param: SwiftPassword} rgw_keystone_admin_password: {get_param: SwiftPassword}
rgw_s3_auth_use_keystone: 'true' rgw_s3_auth_use_keystone: 'true'
- {get_param: CephConfigOverrides}
ntp_service_enabled: false ntp_service_enabled: false
generate_fsid: false generate_fsid: false
ip_version: ip_version:

View File

@ -38,6 +38,7 @@ parameters:
- /dev/vdb - /dev/vdb
journal_size: 512 journal_size: 512
journal_collocation: true journal_collocation: true
osd_scenario: collocated
resources: resources:
CephBase: CephBase:
@ -72,4 +73,5 @@ outputs:
- ceph_osd_ansible_vars: - ceph_osd_ansible_vars:
map_merge: map_merge:
- {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]} - {get_attr: [CephBase, role_data, config_settings, ceph_common_ansible_vars]}
- osd_objectstore: filestore
- {get_param: CephAnsibleDisksConfig} - {get_param: CephAnsibleDisksConfig}