Allow customization of the Ceph pool names
[apex-tripleo-heat-templates.git] / os-apply-config / ceph-cluster-config.yaml
1 heat_template_version: 2015-04-30
2 description: 'Ceph Cluster config data'
3
4 parameters:
5   ceph_storage_count:
6     default: 0
7     type: number
8     description: Number of Ceph storage nodes. Used to enable/disable managed Ceph installation.
9   ceph_external_mon_ips:
10     default: ''
11     type: string
12     description: List of external Ceph Mon host IPs.
13   ceph_client_key:
14     default: ''
15     type: string
16     description: Ceph key used to create the 'openstack' user keyring.
17   ceph_fsid:
18     default: ''
19     type: string
20   ceph_admin_key:
21     default: ''
22     type: string
23   ceph_mon_key:
24     default: ''
25     type: string
26   ceph_mon_names:
27     type: comma_delimited_list
28   ceph_mon_ips:
29     type: comma_delimited_list
30   NovaRbdPoolName:
31     default: vms
32     type: string
33   CinderRbdPoolName:
34     default: volumes
35     type: string
36   GlanceRbdPoolName:
37     default: images
38     type: string
39
40 resources:
41   CephClusterConfigImpl:
42     type: OS::Heat::StructuredConfig
43     properties:
44       group: os-apply-config
45       config:
46         ceph_cluster:
47           mon_initial_members:
48             list_join:
49             - ','
50             - {get_param: ceph_mon_names}
51           mon_host:
52             list_join:
53             - ','
54             - {get_param: ceph_mon_ips}
55           fsid: {get_param: ceph_fsid}
56           admin_key: {get_param: ceph_admin_key}
57           mon_key: {get_param: ceph_mon_key}
58           # We would need a dedicated key for OSD bootstrap
59           bootstrap_osd_key: {get_param: ceph_mon_key}
60           osds: '{"/srv/data": {}}'
61
62 outputs:
63   config_id:
64     description: The ID of the CephClusterConfigImpl resource.
65     value:
66       {get_resource: CephClusterConfigImpl}