Move cephfs and cephfs_*_pool ceph-ansible parameters in -base
We have to move these into the -base service so they are dumped in "all" ansible group vars and correctly consumed by nfs role when not colocated with mds. Closes-Bug: 1840651 Change-Id: I7aec1b80e0f598fc86720d669151958ca7b2e01d
This commit is contained in:
parent
3cdc1a4a0a
commit
04b1378ea1
@ -145,6 +145,22 @@ parameters:
|
|||||||
description: default minimum replication for RBD copies
|
description: default minimum replication for RBD copies
|
||||||
type: number
|
type: number
|
||||||
default: 3
|
default: 3
|
||||||
|
ManilaCephFSDataPoolName:
|
||||||
|
default: manila_data
|
||||||
|
type: string
|
||||||
|
ManilaCephFSMetadataPoolName:
|
||||||
|
default: manila_metadata
|
||||||
|
type: string
|
||||||
|
# DEPRECATED options for compatibility with older versions
|
||||||
|
ManilaCephFSDataPoolPGNum:
|
||||||
|
default: 128
|
||||||
|
type: number
|
||||||
|
ManilaCephFSMetadataPoolPGNum:
|
||||||
|
default: 128
|
||||||
|
type: number
|
||||||
|
ManilaCephFSShareBackendName:
|
||||||
|
default: cephfs
|
||||||
|
type: string
|
||||||
ManilaCephFSCephFSAuthId:
|
ManilaCephFSCephFSAuthId:
|
||||||
default: manila
|
default: manila
|
||||||
type: string
|
type: string
|
||||||
@ -198,7 +214,16 @@ parameters:
|
|||||||
Set this value to 0 to disable this check.
|
Set this value to 0 to disable this check.
|
||||||
type: number
|
type: number
|
||||||
|
|
||||||
|
parameter_groups:
|
||||||
|
- label: deprecated
|
||||||
|
description: Do not use deprecated params, they will be removed.
|
||||||
|
parameters:
|
||||||
|
- ManilaCephFSDataPoolPGNum
|
||||||
|
- ManilaCephFSMetadataPoolPGNum
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
|
deprecated_data_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSDataPoolPGNum}, 128]}}
|
||||||
|
deprecated_metadata_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSMetadataPoolPGNum}, 128]}}
|
||||||
custom_registry_host:
|
custom_registry_host:
|
||||||
yaql:
|
yaql:
|
||||||
data: {get_param: ContainerCephDaemonImage}
|
data: {get_param: ContainerCephDaemonImage}
|
||||||
@ -407,6 +432,27 @@ resources:
|
|||||||
- ipv6
|
- ipv6
|
||||||
- ipv4
|
- ipv4
|
||||||
dashboard_enabled: {get_param: CephEnableDashboard}
|
dashboard_enabled: {get_param: CephEnableDashboard}
|
||||||
|
# Prefer CephPoolDefaultPgNum unless the (deprecated)
|
||||||
|
# params value is different from their default.
|
||||||
|
cephfs_data_pool:
|
||||||
|
application: cephfs
|
||||||
|
name: {get_param: ManilaCephFSDataPoolName}
|
||||||
|
pg_num:
|
||||||
|
if:
|
||||||
|
- deprecated_data_pool_pgnum
|
||||||
|
- {get_param: ManilaCephFSDataPoolPGNum}
|
||||||
|
- {get_param: CephPoolDefaultPgNum}
|
||||||
|
rule_name: replicated_rule
|
||||||
|
cephfs_metadata_pool:
|
||||||
|
application: cephfs
|
||||||
|
name: {get_param: ManilaCephFSMetadataPoolName}
|
||||||
|
pg_num:
|
||||||
|
if:
|
||||||
|
- deprecated_metadata_pool_pgnum
|
||||||
|
- {get_param: ManilaCephFSMetadataPoolPGNum}
|
||||||
|
- {get_param: CephPoolDefaultPgNum}
|
||||||
|
rule_name: replicated_rule
|
||||||
|
cephfs: {get_param: ManilaCephFSShareBackendName}
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
|
@ -35,42 +35,12 @@ parameters:
|
|||||||
with ceph-authtool --gen-print-key.
|
with ceph-authtool --gen-print-key.
|
||||||
type: string
|
type: string
|
||||||
hidden: true
|
hidden: true
|
||||||
ManilaCephFSDataPoolName:
|
|
||||||
default: manila_data
|
|
||||||
type: string
|
|
||||||
ManilaCephFSMetadataPoolName:
|
|
||||||
default: manila_metadata
|
|
||||||
type: string
|
|
||||||
ManilaCephFSShareBackendName:
|
|
||||||
default: cephfs
|
|
||||||
type: string
|
|
||||||
CephPoolDefaultPgNum:
|
|
||||||
description: default pg_num to use for the RBD pools
|
|
||||||
type: number
|
|
||||||
default: 128
|
|
||||||
# DEPRECATED options for compatibility with older versions
|
|
||||||
ManilaCephFSDataPoolPGNum:
|
|
||||||
default: 128
|
|
||||||
type: number
|
|
||||||
ManilaCephFSMetadataPoolPGNum:
|
|
||||||
default: 128
|
|
||||||
type: number
|
|
||||||
CephEnableDashboard:
|
CephEnableDashboard:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
description: Parameter used to trigger the dashboard deployment.
|
description: Parameter used to trigger the dashboard deployment.
|
||||||
|
|
||||||
|
|
||||||
parameter_groups:
|
|
||||||
- label: deprecated
|
|
||||||
description: Do not use deprecated params, they will be removed.
|
|
||||||
parameters:
|
|
||||||
- ManilaCephFSDataPoolPGNum
|
|
||||||
- ManilaCephFSMetadataPoolPGNum
|
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
deprecated_data_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSDataPoolPGNum}, 128]}}
|
|
||||||
deprecated_metadata_pool_pgnum: {not: {equals: [{get_param: ManilaCephFSMetadataPoolPGNum}, 128]}}
|
|
||||||
dashboard_enabled: {equals: [{get_param: CephEnableDashboard}, true]}
|
dashboard_enabled: {equals: [{get_param: CephEnableDashboard}, true]}
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
@ -89,28 +59,7 @@ resources:
|
|||||||
properties:
|
properties:
|
||||||
type: json
|
type: json
|
||||||
value:
|
value:
|
||||||
vars:
|
vars: {}
|
||||||
# Prefer CephPoolDefaultPgNum unless the (deprecated)
|
|
||||||
# params value is different from their default.
|
|
||||||
cephfs_data_pool:
|
|
||||||
application: cephfs
|
|
||||||
name: {get_param: ManilaCephFSDataPoolName}
|
|
||||||
pg_num:
|
|
||||||
if:
|
|
||||||
- deprecated_data_pool_pgnum
|
|
||||||
- {get_param: ManilaCephFSDataPoolPGNum}
|
|
||||||
- {get_param: CephPoolDefaultPgNum}
|
|
||||||
rule_name: replicated_rule
|
|
||||||
cephfs_metadata_pool:
|
|
||||||
application: cephfs
|
|
||||||
name: {get_param: ManilaCephFSMetadataPoolName}
|
|
||||||
pg_num:
|
|
||||||
if:
|
|
||||||
- deprecated_metadata_pool_pgnum
|
|
||||||
- {get_param: ManilaCephFSMetadataPoolPGNum}
|
|
||||||
- {get_param: CephPoolDefaultPgNum}
|
|
||||||
rule_name: replicated_rule
|
|
||||||
cephfs: {get_param: ManilaCephFSShareBackendName}
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
role_data:
|
role_data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user