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: The Ceph cluster FSID. Must be a UUID.
65 description: default pg_num to use for the RBD pools
70 It can be used to override settings for one of the predefined pools, or to create
71 additional ones. Example:
84 CinderBackupRbdPoolName:
97 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
104 description: default minimum replication for RBD copies
107 ManilaCephFSNativeCephFSAuthId:
112 description: The Ceph client key. Can be created with ceph-authtool --gen-print-key.
118 DockerCephDaemonImage:
121 default: 'ceph/daemon:tag-build-master-jewel-centos-7'
124 custom_registry_host:
126 data: {get_param: DockerCephDaemonImage}
127 expression: $.data.split('/')[0].matches('(\.|:)')
129 equals: [{get_param: StackUpdateType}, 'UPGRADE']
133 type: OS::Heat::Value
139 - custom_registry_host
141 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*?)/(.*)').split($location)[1]
142 data: {get_param: DockerCephDaemonImage}
146 - custom_registry_host
148 expression: let(location => $.data.rightSplit(':', 1)[0]) -> regex('(?:https?://)?(.*?)/(.*)').split($location)[2]
149 data: {get_param: DockerCephDaemonImage}
151 expression: $.data.rightSplit(':', 1)[0]
152 data: {get_param: DockerCephDaemonImage}
155 expression: $.data.rightSplit(':', 1)[1]
156 data: {get_param: DockerCephDaemonImage}
160 description: Role data for the Ceph base service.
162 service_name: ceph_base
170 service_workflow_tasks:
172 - name: ceph_base_ansible_workflow
173 workflow: { get_param: CephAnsibleWorkflowName }
175 ansible_skip_tags: {get_param: CephAnsibleSkipTags}
176 ceph_ansible_extra_vars: {get_param: CephAnsibleExtraConfig}
177 ceph_ansible_playbook:
180 - {get_param: CephAnsibleUpgradePlaybook}
181 - {get_param: CephAnsiblePlaybook}
183 ceph_common_ansible_vars:
185 fsid: { get_param: CephClusterFSID }
188 ceph_docker_registry: {get_attr: [DockerImageUrlParts, value, host]}
189 ceph_docker_image: {get_attr: [DockerImageUrlParts, value, image]}
190 ceph_docker_image_tag: {get_attr: [DockerImageUrlParts, value, image_tag]}
191 containerized_deployment: true
192 public_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
193 monitor_address_block: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephMonNetwork]}]}
194 cluster_network: {get_param: [ServiceData, net_cidr_map, {get_param: [ServiceNetMap, CephClusterNetwork]}]}
198 openstack_config: true
204 pg_num: {get_param: CephPoolDefaultPgNum}
208 - {get_param: CinderRbdPoolName}
209 - {get_param: CinderBackupRbdPoolName}
210 - {get_param: NovaRbdPoolName}
211 - {get_param: GlanceRbdPoolName}
212 - {get_param: GnocchiRbdPoolName}
216 pg_num: {get_param: CephPoolDefaultPgNum}
219 <%pool%>: {get_param: CephPools}
220 openstack_keys: &openstack_keys
225 - {get_param: CephClientUserName}
226 key: {get_param: CephClientKey}
230 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"
232 NOVA_POOL: {get_param: NovaRbdPoolName}
233 CINDER_POOL: {get_param: CinderRbdPoolName}
234 CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
235 GLANCE_POOL: {get_param: GlanceRbdPoolName}
236 GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
242 - {get_param: ManilaCephFSNativeCephFSAuthId}
243 key: {get_param: CephManilaClientKey}
244 mon_cap: 'allow r, allow command \\\"auth del\\\", allow command \\\"auth caps\\\", allow command \\\"auth get\\\", allow command \\\"auth get-or-create\\\"'
248 keys: *openstack_keys
252 osd_pool_default_size: {get_param: CephPoolDefaultSize}
253 osd_pool_default_pg_num: {get_param: CephPoolDefaultPgNum}
254 ntp_service_enabled: false
258 - {get_param: CephIPv6}