b656e24563c0f83cdfe305a79aef659e1282e6b8
[apex-tripleo-heat-templates.git] / puppet / services / ceph-external.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Ceph External service.
5
6 parameters:
7   CephClientKey:
8     default: ''
9     description: The Ceph client key. Can be created with ceph-authtool --gen-print-key. Currently only used for external Ceph deployments to create the openstack user keyring.
10     type: string
11     hidden: true
12   CephClientUserName:
13     default: openstack
14     type: string
15   CephClusterFSID:
16     default: ''
17     type: string
18     description: The Ceph cluster FSID. Must be a UUID.
19   CephExternalMonHost:
20     default: ''
21     type: string
22     description: List of externally managed Ceph Mon Host IPs. Only used for external Ceph deployments.
23   CinderRbdPoolName:
24     default: volumes
25     type: string
26   CinderBackupRbdPoolName:
27     default: backups
28     type: string
29   GlanceRbdPoolName:
30     default: images
31     type: string
32   GnocchiRbdPoolName:
33     default: metrics
34     type: string
35   NovaRbdPoolName:
36     default: vms
37     type: string
38
39 outputs:
40   role_data:
41     description: Role data for the Ceph External service.
42     value:
43       service_name: ceph-external
44       config_settings:
45         tripleo::profile::base::ceph::ceph_mon_host: {get_param: CephExternalMonHost}
46         ceph::profile::params::fsid: {get_param: CephClusterFSID}
47         ceph::profile::params::client_keys:
48           str_replace:
49             template: "{
50               client.CLIENT_USER: {
51                 secret: 'CLIENT_KEY',
52                 mode: '0644',
53                 cap_mon: 'allow r',
54                 cap_osd: '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'
55               }
56             }"
57             params:
58               CLIENT_USER: {get_param: CephClientUserName}
59               CLIENT_KEY: {get_param: CephClientKey}
60               NOVA_POOL: {get_param: NovaRbdPoolName}
61               CINDER_POOL: {get_param: CinderRbdPoolName}
62               CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
63               GLANCE_POOL: {get_param: GlanceRbdPoolName}
64               GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
65       step_config: |
66         include ::tripleo::profile::base::ceph::client