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
94 DockerCephDaemonImage:
97 default: 'ceph/daemon:tag-build-master-jewel-centos-7'
100 custom_registry_host:
102 data: {get_param: DockerCephDaemonImage}
103 expression: $.data.split('/')[0].matches('(\.|:)')
107 type: OS::Heat::Value
113 - custom_registry_host
115 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*)/').split($location)[1]
116 data: {get_param: DockerCephDaemonImage}
120 - custom_registry_host
122 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*)/').split($location)[2]
123 data: {get_param: DockerCephDaemonImage}
125 expression: $.data.rightSplit(':', 1)[0]
126 data: {get_param: DockerCephDaemonImage}
129 expression: $.data.rightSplit(':', 1)[1]
130 data: {get_param: DockerCephDaemonImage}
134 description: Role data for the Ceph base service.
136 service_name: ceph_base
144 service_workflow_tasks:
146 - name: ceph_base_ansible_workflow
147 workflow: { get_param: CephAnsibleWorkflowName }
149 ceph_ansible_extra_vars: {get_param: CephAnsibleExtraConfig}
150 ceph_ansible_playbook: {get_param: CephAnsiblePlaybook}
152 ceph_common_ansible_vars:
153 fsid: { get_param: CephClusterFSID }
155 ceph_docker_registry: {get_attr: [DockerImageUrlParts, value, host]}
156 ceph_docker_image: {get_attr: [DockerImageUrlParts, value, image]}
157 ceph_docker_image_tag: {get_attr: [DockerImageUrlParts, value, image_tag]}
158 containerized_deployment: true
159 public_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
160 monitor_address_block: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
161 cluster_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
165 openstack_config: true
171 pg_num: {get_param: CephPoolDefaultPgNum}
175 - {get_param: CinderRbdPoolName}
176 - {get_param: CinderBackupRbdPoolName}
177 - {get_param: NovaRbdPoolName}
178 - {get_param: GlanceRbdPoolName}
179 - {get_param: GnocchiRbdPoolName}
183 pg_num: {get_param: CephPoolDefaultPgNum}
186 <%pool%>: {get_param: CephPools}
187 openstack_keys: &openstack_keys
192 - {get_param: CephClientUserName}
193 key: {get_param: CephClientKey}
197 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"
199 NOVA_POOL: {get_param: NovaRbdPoolName}
200 CINDER_POOL: {get_param: CinderRbdPoolName}
201 CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
202 GLANCE_POOL: {get_param: GlanceRbdPoolName}
203 GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
205 keys: *openstack_keys
209 osd_pool_default_size: {get_param: CephPoolDefaultSize}
210 osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum}
211 ntp_service_enabled: false
215 - {get_param: CephIPv6}