f6fe26db13047353ac0a3841a78b7ac6adbac563
[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     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.
9     type: string
10     hidden: true
11   CephClientUserName:
12     default: openstack
13     type: string
14   CephClusterFSID:
15     type: string
16     description: The Ceph cluster FSID. Must be a UUID.
17   CephExternalMonHost:
18     default: ''
19     type: string
20     description: List of externally managed Ceph Mon Host IPs. Only used for external Ceph deployments.
21   CinderRbdPoolName:
22     default: volumes
23     type: string
24   CinderBackupRbdPoolName:
25     default: backups
26     type: string
27   GlanceRbdPoolName:
28     default: images
29     type: string
30   GnocchiRbdPoolName:
31     default: metrics
32     type: string
33   NovaRbdPoolName:
34     default: vms
35     type: string
36
37 outputs:
38   role_data:
39     description: Role data for the Ceph External service.
40     value:
41       service_name: ceph_external
42       config_settings:
43         tripleo::profile::base::ceph::ceph_mon_host: {get_param: CephExternalMonHost}
44         ceph::profile::params::fsid: {get_param: CephClusterFSID}
45         ceph::profile::params::client_keys:
46           str_replace:
47             template: "{
48               client.CLIENT_USER: {
49                 secret: 'CLIENT_KEY',
50                 mode: '0644',
51                 cap_mon: 'allow r',
52                 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'
53               }
54             }"
55             params:
56               CLIENT_USER: {get_param: CephClientUserName}
57               CLIENT_KEY: {get_param: CephClientKey}
58               NOVA_POOL: {get_param: NovaRbdPoolName}
59               CINDER_POOL: {get_param: CinderRbdPoolName}
60               CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
61               GLANCE_POOL: {get_param: GlanceRbdPoolName}
62               GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
63       step_config: |
64         include ::tripleo::profile::base::ceph::client