Merge "Align some defaults with with ControllerCount default"
[apex-tripleo-heat-templates.git] / puppet / extraconfig / ceph / ceph-external-config.yaml
1 heat_template_version: 2015-04-30
2 description: 'Configure parameters for an external Ceph cluster via Puppet.'
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   # The following parameters are unused for external Ceph clusters and
21   # are here and exist for compatibility
22   ceph_admin_key:
23     default: ''
24     type: string
25   ceph_mon_key:
26     default: ''
27     type: string
28   ceph_mon_names:
29     type: comma_delimited_list
30   ceph_mon_ips:
31     type: comma_delimited_list
32   NovaRbdPoolName:
33     default: vms
34     type: string
35   CinderRbdPoolName:
36     default: volumes
37     type: string
38   GlanceRbdPoolName:
39     default: images
40     type: string
41
42 resources:
43   CephClusterConfigImpl:
44     type: OS::Heat::StructuredConfig
45     properties:
46       group: os-apply-config
47       config:
48         hiera:
49           datafiles:
50             ceph_cluster:
51               mapped_data:
52                 ceph_storage_count: {get_param: ceph_storage_count}
53                 enable_external_ceph: true
54                 ceph::profile::params::mon_host: {get_param: ceph_external_mon_ips}
55                 ceph::profile::params::fsid: {get_param: ceph_fsid}
56                 ceph::profile::params::client_keys:
57                   str_replace:
58                     template: "{
59                       client.openstack: {
60                         secret: 'CLIENT_KEY',
61                         mode: '0644',
62                         cap_mon: 'allow r',
63                         cap_osd: 'allow class-read object_prefix rbd_children, allow rwx pool=CINDER_POOL, allow rwx pool=NOVA_POOL, allow rwx pool=GLANCE_POOL'
64                       }
65                     }"
66                     params:
67                       CLIENT_KEY: {get_param: ceph_client_key}
68                       NOVA_POOL: {get_param: NovaRbdPoolName}
69                       CINDER_POOL: {get_param: CinderRbdPoolName}
70                       GLANCE_POOL: {get_param: GlanceRbdPoolName}
71                 nova::compute::rbd::libvirt_images_rbd_pool: {get_param: NovaRbdPoolName}
72                 cinder_rbd_pool_name: {get_param: CinderRbdPoolName}
73                 glance::backend::rbd::rbd_store_pool: {get_param: GlanceRbdPoolName}
74                 ceph_pools:
75                   - {get_param: CinderRbdPoolName}
76                   - {get_param: NovaRbdPoolName}
77                   - {get_param: GlanceRbdPoolName}
78
79 outputs:
80   config_id:
81     description: The ID of the CephClusterConfigImpl resource.
82     value:
83       {get_resource: CephClusterConfigImpl}