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.
33 CephAnsibleWorkflowName:
35 description: Name of the Mistral workflow to execute
36 default: tripleo.storage.v1.ceph-install
39 description: Path to the ceph-ansible playbook to execute
40 default: /usr/share/ceph-ansible/site-docker.yml.sample
41 CephAnsibleExtraConfig:
43 description: Extra vars for the ceph-ansible playbook
47 description: The Ceph cluster FSID. Must be a UUID.
49 description: default pg_num to use for the RBD pools
54 It can be used to override settings for one of the predefined pools, or to create
55 additional ones. Example:
68 CinderBackupRbdPoolName:
81 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key. Currently only used for external Ceph deployments to create the openstack user keyring.
88 description: default minimum replication for RBD copies
91 ManilaCephFSNativeCephFSAuthId:
96 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
102 DockerCephDaemonImage:
105 default: 'ceph/daemon:tag-build-master-jewel-centos-7'
108 custom_registry_host:
110 data: {get_param: DockerCephDaemonImage}
111 expression: $.data.split('/')[0].matches('(\.|:)')
115 type: OS::Heat::Value
121 - custom_registry_host
123 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*)/').split($location)[1]
124 data: {get_param: DockerCephDaemonImage}
128 - custom_registry_host
130 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*)/').split($location)[2]
131 data: {get_param: DockerCephDaemonImage}
133 expression: $.data.rightSplit(':', 1)[0]
134 data: {get_param: DockerCephDaemonImage}
137 expression: $.data.rightSplit(':', 1)[1]
138 data: {get_param: DockerCephDaemonImage}
142 description: Role data for the Ceph base service.
144 service_name: ceph_base
152 service_workflow_tasks:
154 - name: ceph_base_ansible_workflow
155 workflow: { get_param: CephAnsibleWorkflowName }
157 ceph_ansible_extra_vars: {get_param: CephAnsibleExtraConfig}
158 ceph_ansible_playbook: {get_param: CephAnsiblePlaybook}
160 ceph_common_ansible_vars:
162 fsid: { get_param: CephClusterFSID }
164 ceph_docker_registry: {get_attr: [DockerImageUrlParts, value, host]}
165 ceph_docker_image: {get_attr: [DockerImageUrlParts, value, image]}
166 ceph_docker_image_tag: {get_attr: [DockerImageUrlParts, value, image_tag]}
167 containerized_deployment: true
168 public_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
169 monitor_address_block: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
170 cluster_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
174 openstack_config: true
180 pg_num: {get_param: CephPoolDefaultPgNum}
184 - {get_param: CinderRbdPoolName}
185 - {get_param: CinderBackupRbdPoolName}
186 - {get_param: NovaRbdPoolName}
187 - {get_param: GlanceRbdPoolName}
188 - {get_param: GnocchiRbdPoolName}
192 pg_num: {get_param: CephPoolDefaultPgNum}
195 <%pool%>: {get_param: CephPools}
196 openstack_keys: &openstack_keys
201 - {get_param: CephClientUserName}
202 key: {get_param: CephClientKey}
206 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"
208 NOVA_POOL: {get_param: NovaRbdPoolName}
209 CINDER_POOL: {get_param: CinderRbdPoolName}
210 CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
211 GLANCE_POOL: {get_param: GlanceRbdPoolName}
212 GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
218 - {get_param: ManilaCephFSNativeCephFSAuthId}
219 key: {get_param: CephManilaClientKey}
220 mon_cap: "allow r, allow command auth del, allow command auth caps, allow command auth get, allow command auth get-or-create"
224 keys: *openstack_keys
228 osd_pool_default_size: {get_param: CephPoolDefaultSize}
229 osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum}
230 ntp_service_enabled: false
234 - {get_param: CephIPv6}