1 heat_template_version: pike
4 Ceph base service. Shared by all Ceph services.
9 description: Dictionary packing service data
13 description: Mapping of service_name -> network name. Typically set
14 via parameter_defaults in the resource registry. This
15 mapping overrides those in ServiceNetMapDefaults.
22 description: Role name on which the service is applied
26 description: Parameters specific to the role
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
36 Type of update, to differentiate between UPGRADE and UPDATE cases
37 when StackAction is UPDATE (both are the same stack action).
39 - allowed_values: ['', 'UPGRADE']
41 CephAnsibleWorkflowName:
43 description: Name of the Mistral workflow to execute
44 default: tripleo.storage.v1.ceph-install
47 description: Path to the ceph-ansible playbook to execute
48 default: /usr/share/ceph-ansible/site-docker.yml.sample
49 CephAnsibleUpgradePlaybook:
51 description: Path to the ceph-ansible playbook to execute on upgrade
52 default: /usr/share/ceph-ansible/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml
53 CephAnsibleExtraConfig:
55 description: Extra vars for the ceph-ansible playbook
59 description: List of ceph-ansible tags to skip
60 default: 'package-install,with_pkg'
63 description: Extra config settings to dump into ceph.conf
67 description: The Ceph cluster FSID. Must be a UUID.
69 description: default pg_num to use for the RBD pools
74 It can be used to override settings for one of the predefined pools, or to create
75 additional ones. Example:
88 CinderBackupRbdPoolName:
101 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
111 description: The cephx key for the radosgw client. Can be created
112 with ceph-authtool --gen-print-key.
116 description: default minimum replication for RBD copies
119 ManilaCephFSNativeCephFSAuthId:
124 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
131 description: The password for the swift service account
134 DockerCephDaemonImage:
139 custom_registry_host:
141 data: {get_param: DockerCephDaemonImage}
142 expression: $.data.split('/')[0].matches('(\.|:)')
144 equals: [{get_param: StackUpdateType}, 'UPGRADE']
148 type: OS::Heat::Value
154 - custom_registry_host
156 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*?)/(.*)').split($location)[1]
157 data: {get_param: DockerCephDaemonImage}
161 - custom_registry_host
163 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*?)/(.*)').split($location)[2]
164 data: {get_param: DockerCephDaemonImage}
166 expression: $.data.rightSplit(':', 1)[0]
167 data: {get_param: DockerCephDaemonImage}
170 expression: $.data.rightSplit(':', 1)[1]
171 data: {get_param: DockerCephDaemonImage}
175 description: Role data for the Ceph base service.
177 service_name: ceph_base
185 service_workflow_tasks:
187 - name: ceph_base_ansible_workflow
188 workflow: { get_param: CephAnsibleWorkflowName }
190 ansible_skip_tags: {get_param: CephAnsibleSkipTags}
191 ceph_ansible_extra_vars: {get_param: CephAnsibleExtraConfig}
192 ceph_ansible_playbook:
195 - {get_param: CephAnsibleUpgradePlaybook}
196 - {get_param: CephAnsiblePlaybook}
198 ceph_common_ansible_vars:
200 fsid: { get_param: CephClusterFSID }
203 ceph_docker_registry: {get_attr: [DockerImageUrlParts, value, host]}
204 ceph_docker_image: {get_attr: [DockerImageUrlParts, value, image]}
205 ceph_docker_image_tag: {get_attr: [DockerImageUrlParts, value, image_tag]}
206 containerized_deployment: true
207 public_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
208 monitor_address_block: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
209 cluster_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
213 openstack_config: true
219 pg_num: {get_param: CephPoolDefaultPgNum}
223 - {get_param: CinderRbdPoolName}
224 - {get_param: CinderBackupRbdPoolName}
225 - {get_param: NovaRbdPoolName}
226 - {get_param: GlanceRbdPoolName}
227 - {get_param: GnocchiRbdPoolName}
231 pg_num: {get_param: CephPoolDefaultPgNum}
234 <%pool%>: {get_param: CephPools}
235 openstack_keys: &openstack_keys
240 - {get_param: CephClientUserName}
241 key: {get_param: CephClientKey}
245 template: "allow class-read object_prefix rbd_children, allow rwx pool=CINDER_POOL, allow rwx pool=CINDERBACKUP_POOL, allow rwx pool=NOVA_POOL, allow rwx pool=GLANCE_POOL, allow rwx pool=GNOCCHI_POOL"
247 NOVA_POOL: {get_param: NovaRbdPoolName}
248 CINDER_POOL: {get_param: CinderRbdPoolName}
249 CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
250 GLANCE_POOL: {get_param: GlanceRbdPoolName}
251 GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
257 - {get_param: ManilaCephFSNativeCephFSAuthId}
258 key: {get_param: CephManilaClientKey}
259 mon_cap: 'allow r, allow command \\\"auth del\\\", allow command \\\"auth caps\\\", allow command \\\"auth get\\\", allow command \\\"auth get-or-create\\\"'
267 - {get_param: CephRgwClientName}
268 key: {get_param: CephRgwKey}
272 keys: *openstack_keys
277 osd_pool_default_size: {get_param: CephPoolDefaultSize}
278 osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum}
279 rgw_keystone_api_version: 3
280 rgw_keystone_url: {get_param: [EndpointMap, KeystoneInternal, uri_no_suffix]}
281 rgw_keystone_accepted_roles: 'Member, _member_, admin'
282 rgw_keystone_admin_domain: default
283 rgw_keystone_admin_project: service
284 rgw_keystone_admin_user: swift
285 rgw_keystone_admin_password: {get_param: SwiftPassword}
286 rgw_s3_auth_use_keystone: 'true'
287 - {get_param: CephConfigOverrides}
288 ntp_service_enabled: false
292 - {get_param: CephIPv6}