Write package names out to flat files
[apex-tripleo-heat-templates.git] / 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
31 resources:
32   CephClusterConfigImpl:
33     type: OS::Heat::StructuredConfig
34     properties:
35       group: os-apply-config
36       config:
37         ceph_cluster:
38           mon_initial_members:
39             list_join:
40             - ','
41             - {get_param: ceph_mon_names}
42           mon_host:
43             list_join:
44             - ','
45             - {get_param: ceph_mon_ips}
46           fsid: {get_param: ceph_fsid}
47           admin_key: {get_param: ceph_admin_key}
48           mon_key: {get_param: ceph_mon_key}
49           # We would need a dedicated key for OSD bootstrap
50           bootstrap_osd_key: {get_param: ceph_mon_key}
51           osds: '{"/srv/data": {}}'
52
53 outputs:
54   config_id:
55     description: The ID of the CephClusterConfigImpl resource.
56     value:
57       {get_resource: CephClusterConfigImpl}