Puppet: First support Ceph
[apex-tripleo-heat-templates.git] / puppet / ceph-cluster-config.yaml
1 heat_template_version: 2014-10-16
2 description: 'Ceph Cluster config data for Puppet'
3
4 parameters:
5   ceph_fsid:
6     default: ''
7     type: string
8   ceph_admin_key:
9     default: ''
10     type: string
11   ceph_mon_key:
12     default: ''
13     type: string
14   ceph_mon_names:
15     type: comma_delimited_list
16   ceph_mon_ips:
17     type: comma_delimited_list
18
19 resources:
20   CephClusterConfigImpl:
21     type: OS::Heat::StructuredConfig
22     properties:
23       group: os-apply-config
24       config:
25         hiera:
26           datafiles:
27             ceph_cluster:
28               mapped_data:
29                 ceph_mon_initial_members:
30                   list_join:
31                   - ','
32                   - {get_param: ceph_mon_names}
33                 ceph::profile::params::mon_host:
34                   list_join:
35                   - ','
36                   - {get_param: ceph_mon_ips}
37                 ceph::profile::params::fsid: {get_param: ceph_fsid}
38                 ceph::profile::params::admin_key: {get_param: ceph_admin_key}
39                 ceph::profile::params::mon_key: {get_param: ceph_mon_key}
40                 # We would need a dedicated key for OSD
41                 ceph::profile::params::bootstrap_osd_key: {get_param: ceph_mon_key}
42                 ceph::profile::params::osds: '{"/srv/data": {}}'
43
44 outputs:
45   config_id:
46     description: The ID of the CephClusterConfigImpl resource.
47     value:
48       {get_resource: CephClusterConfigImpl}