1 heat_template_version: ocata
4 Ceph base service. Shared by all Ceph services.
7 # NOTE(gfidente): needs a default to cope with external Ceph deployments were we don't pass (and need) an Admin key
10 description: The Ceph admin client key. Can be created with ceph-authtool --gen-print-key.
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.
22 description: The Ceph cluster FSID. Must be a UUID.
26 CinderBackupRbdPoolName:
34 description: The short name of the Glance backend to use. Should be one
35 of swift, rbd, or file
38 - allowed_values: ['swift', 'file', 'rbd']
44 description: Whether to enable or not the Rbd backend for Nova
51 description: Mapping of service_name -> network name. Typically set
52 via parameter_defaults in the resource registry. This
53 mapping overrides those in ServiceNetMapDefaults.
60 description: Mapping of service endpoint -> protocol. Typically set
61 via parameter_defaults in the resource registry.
63 # DEPRECATED options for compatibility with overcloud.yaml
64 # This should be removed and manipulation of the ControllerServices list
65 # used instead, but we need client support for that first
66 ControllerEnableCephStorage:
68 description: Whether to deploy Ceph Storage (OSD) on the Controller
73 description: Do not use deprecated params, they will be removed.
75 - ControllerEnableCephStorage
78 glance_multiple_locations:
81 - get_param: GlanceBackend
84 - get_param: NovaEnableRbdBackend
89 description: Role data for the Ceph base service.
91 service_name: ceph_base
93 tripleo::profile::base::ceph::enable_ceph_storage: {get_param: ControllerEnableCephStorage}
94 ceph::profile::params::osd_pool_default_min_size: 1
95 ceph::profile::params::osds: {/srv/data: {}}
96 ceph::profile::params::manage_repo: false
97 ceph::profile::params::authentication_type: cephx
98 ceph::profile::params::fsid: {get_param: CephClusterFSID}
99 # FIXME(gfidente): we should not have to list the packages explicitly in the templates,
100 # but this has to stay until https://bugs.launchpad.net/puppet-ceph/+bug/1629933 is fixed
101 ceph::params::packages:
105 # NOTE: bind IP is found in Heat replacing the network name with the local node IP
106 # for the given network; replacement examples (eg. for internal_api):
108 # internal_api_uri -> [IP]
109 # internal_api_subnet - > IP/CIDR
110 ceph::profile::params::cluster_network:
112 template: "NETWORK_subnet"
114 NETWORK: {get_param: [ServiceNetMap, CephClusterNetwork]}
115 ceph::profile::params::public_network:
117 template: "NETWORK_subnet"
119 NETWORK: {get_param: [ServiceNetMap, CephMonNetwork]}
120 ceph::profile::params::public_addr: {get_param: [ServiceNetMap, CephMonNetwork]}
121 ceph::profile::params::client_keys:
124 secret: {get_param: CephAdminKey}
129 client.bootstrap-osd:
130 secret: {get_param: CephAdminKey}
131 keyring_path: '/var/lib/ceph/bootstrap-osd/ceph.keyring'
132 cap_mon: 'allow profile bootstrap-osd'
134 secret: {get_param: CephClientKey}
139 template: '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'
141 NOVA_POOL: {get_param: NovaRbdPoolName}
142 CINDER_POOL: {get_param: CinderRbdPoolName}
143 CINDERBACKUP_POOL: {get_param: CinderBackupRbdPoolName}
144 GLANCE_POOL: {get_param: GlanceRbdPoolName}
145 GNOCCHI_POOL: {get_param: GnocchiRbdPoolName}
148 list_join: ['.', ['client', {get_param: CephClientUserName}]]
149 service_config_settings:
151 glance::api::show_multiple_locations: {if: [glance_multiple_locations, true, false]}