Clarify horizon allowed hosts setting
[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   CephIPv6:
24     default: False
25     type: boolean
26   CinderRbdPoolName:
27     default: volumes
28     type: string
29   CinderBackupRbdPoolName:
30     default: backups
31     type: string
32   GlanceRbdPoolName:
33     default: images
34     type: string
35   GnocchiRbdPoolName:
36     default: metrics
37     type: string
38   NovaRbdPoolName:
39     default: vms
40     type: string
41   ServiceNetMap:
42     default: {}
43     description: Mapping of service_name -> network name. Typically set
44                  via parameter_defaults in the resource registry.  This
45                  mapping overrides those in ServiceNetMapDefaults.
46     type: json
47   DefaultPasswords:
48     default: {}
49     type: json
50   EndpointMap:
51     default: {}
52     description: Mapping of service endpoint -> protocol. Typically set
53                  via parameter_defaults in the resource registry.
54     type: json
55   # DEPRECATED options for compatibility with overcloud.yaml
56   # This should be removed and manipulation of the ControllerServices list
57   # used instead, but we need client support for that first
58   ControllerEnableCephStorage:
59     default: false
60     description: Whether to deploy Ceph Storage (OSD) on the Controller
61     type: boolean
62
63 parameter_groups:
64 - label: deprecated
65   description: Do not use deprecated params, they will be removed.
66   parameters:
67   - ControllerEnableCephStorage
68
69 outputs:
70   role_data:
71     description: Role data for the Ceph base service.
72     value:
73       service_name: ceph_base
74       config_settings:
75         tripleo::profile::base::ceph::ceph_ipv6: {get_param: CephIPv6}
76         tripleo::profile::base::ceph::enable_ceph_storage: {get_param: ControllerEnableCephStorage}
77         ceph::profile::params::osd_pool_default_min_size: 1
78         ceph::profile::params::osds: {/srv/data: {}}
79         ceph::profile::params::manage_repo: false
80         ceph::profile::params::authentication_type: cephx
81         ceph::profile::params::fsid: {get_param: CephClusterFSID}
82         # NOTE: bind IP is found in Heat replacing the network name with the local node IP
83         # for the given network; replacement examples (eg. for internal_api):
84         # internal_api -> IP
85         # internal_api_uri -> [IP]
86         # internal_api_subnet - > IP/CIDR
87         ceph::profile::params::cluster_network:
88           str_replace:
89             template: "NETWORK_subnet"
90             params:
91               NETWORK: {get_param: [ServiceNetMap, CephClusterNetwork]}
92         ceph::profile::params::public_network:
93           str_replace:
94             template: "NETWORK_subnet"
95             params:
96               NETWORK: {get_param: [ServiceNetMap, CephPublicNetwork]}
97         ceph::profile::params::public_addr: {get_param: [ServiceNetMap, CephPublicNetwork]}
98         ceph::profile::params::client_keys:
99           str_replace:
100             template: "{
101               client.admin: {
102                 secret: 'ADMIN_KEY',
103                 mode: '0600',
104                 cap_mon: 'allow *',
105                 cap_osd: 'allow *',
106                 cap_mds: 'allow *'
107               },
108               client.bootstrap-osd: {
109                 secret: 'ADMIN_KEY',
110                 keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring',
111                 cap_mon: 'allow profile bootstrap-osd'
112               },
113               client.CLIENT_USER: {
114                 secret: 'CLIENT_KEY',
115                 mode: '0644',
116                 cap_mon: 'allow r',
117                 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'
118               }
119             }"
120             params:
121               CLIENT_USER: {get_param: CephClientUserName}
122               CLIENT_KEY: {get_param: CephClientKey}
123               ADMIN_KEY: {get_param: CephAdminKey}
124               NOVA_POOL: {get_param: NovaRbdPoolName}
125               CINDER_POOL: {get_param: CinderRbdPoolName}
126               CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
127               GLANCE_POOL: {get_param: GlanceRbdPoolName}
128               GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}