Merge "Renames OpenDaylight to OpenDaylightApi and splits out OVS configuration"
[apex-tripleo-heat-templates.git] / puppet / services / ceph-base.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   Ceph base service. Shared by all Ceph services.
5
6 parameters:
7   # NOTE(gfidente): needs a default to cope with external Ceph deployments were we don't pass (and need) an Admin key
8   CephAdminKey:
9     default: ''
10     description: The Ceph admin client key. Can be created with ceph-authtool --gen-print-key.
11     type: string
12     hidden: true
13   CephClientKey:
14     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.
15     type: string
16     hidden: true
17   CephClientUserName:
18     default: openstack
19     type: string
20   CephClusterFSID:
21     type: string
22     description: The Ceph cluster FSID. Must be a UUID.
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   ServiceNetMap:
39     default: {}
40     description: Mapping of service_name -> network name. Typically set
41                  via parameter_defaults in the resource registry.  This
42                  mapping overrides those in ServiceNetMapDefaults.
43     type: json
44   DefaultPasswords:
45     default: {}
46     type: json
47   EndpointMap:
48     default: {}
49     description: Mapping of service endpoint -> protocol. Typically set
50                  via parameter_defaults in the resource registry.
51     type: json
52   # DEPRECATED options for compatibility with overcloud.yaml
53   # This should be removed and manipulation of the ControllerServices list
54   # used instead, but we need client support for that first
55   ControllerEnableCephStorage:
56     default: false
57     description: Whether to deploy Ceph Storage (OSD) on the Controller
58     type: boolean
59
60 parameter_groups:
61 - label: deprecated
62   description: Do not use deprecated params, they will be removed.
63   parameters:
64   - ControllerEnableCephStorage
65
66 outputs:
67   role_data:
68     description: Role data for the Ceph base service.
69     value:
70       service_name: ceph_base
71       config_settings:
72         tripleo::profile::base::ceph::enable_ceph_storage: {get_param: ControllerEnableCephStorage}
73         ceph::profile::params::osd_pool_default_min_size: 1
74         ceph::profile::params::osds: {/srv/data: {}}
75         ceph::profile::params::manage_repo: false
76         ceph::profile::params::authentication_type: cephx
77         ceph::profile::params::fsid: {get_param: CephClusterFSID}
78         # FIXME(gfidente): we should not have to list the packages explicitly in the templates,
79         # but this has to stay until https://bugs.launchpad.net/puppet-ceph/+bug/1629933 is fixed
80         ceph::params::packages:
81           - ceph-base
82           - ceph-mon
83           - ceph-osd
84         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
85         # for the given network; replacement examples (eg. for internal_api):
86         # internal_api -> IP
87         # internal_api_uri -> [IP]
88         # internal_api_subnet - > IP/CIDR
89         ceph::profile::params::cluster_network:
90           str_replace:
91             template: "NETWORK_subnet"
92             params:
93               NETWORK: {get_param: [ServiceNetMap, CephClusterNetwork]}
94         ceph::profile::params::public_network:
95           str_replace:
96             template: "NETWORK_subnet"
97             params:
98               NETWORK: {get_param: [ServiceNetMap, CephMonNetwork]}
99         ceph::profile::params::public_addr: {get_param: [ServiceNetMap, CephMonNetwork]}
100         ceph::profile::params::client_keys:
101           str_replace:
102             template: "{
103               client.admin: {
104                 secret: 'ADMIN_KEY',
105                 mode: '0600',
106                 cap_mon: 'allow *',
107                 cap_osd: 'allow *',
108                 cap_mds: 'allow *'
109               },
110               client.bootstrap-osd: {
111                 secret: 'ADMIN_KEY',
112                 keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring',
113                 cap_mon: 'allow profile bootstrap-osd'
114               },
115               client.CLIENT_USER: {
116                 secret: 'CLIENT_KEY',
117                 mode: '0644',
118                 cap_mon: 'allow r',
119                 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'
120               }
121             }"
122             params:
123               CLIENT_USER: {get_param: CephClientUserName}
124               CLIENT_KEY: {get_param: CephClientKey}
125               ADMIN_KEY: {get_param: CephAdminKey}
126               NOVA_POOL: {get_param: NovaRbdPoolName}
127               CINDER_POOL: {get_param: CinderRbdPoolName}
128               CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
129               GLANCE_POOL: {get_param: GlanceRbdPoolName}
130               GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}