Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / services / ceph-rgw.yaml
1 heat_template_version: ocata
2
3 description: >
4   Ceph RadosGW service.
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   AdminToken:
22     description: The keystone auth secret and db password.
23     type: string
24     hidden: true
25   CephRgwKey:
26     description: The cephx key for the radosgw client. Can be created
27                  with ceph-authtool --gen-print-key.
28     type: string
29     hidden: true
30   SwiftPassword:
31     description: The password for the swift service account, used by the Ceph RGW services.
32     type: string
33     hidden: true
34   KeystoneRegion:
35     type: string
36     default: 'regionOne'
37     description: Keystone region for endpoint
38
39 resources:
40   CephBase:
41     type: ./ceph-base.yaml
42     properties:
43       ServiceNetMap: {get_param: ServiceNetMap}
44       DefaultPasswords: {get_param: DefaultPasswords}
45       EndpointMap: {get_param: EndpointMap}
46
47 outputs:
48   role_data:
49     description: Role data for the Ceph RadosGW service.
50     value:
51       service_name: ceph_rgw
52       config_settings:
53         map_merge:
54           - get_attr: [CephBase, role_data, config_settings]
55           - tripleo::profile::base::ceph::rgw::rgw_key: {get_param: CephRgwKey}
56             tripleo::profile::base::ceph::rgw::keystone_admin_token: {get_param: AdminToken}
57             tripleo::profile::base::ceph::rgw::keystone_url: {get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix]}
58             tripleo::profile::base::ceph::rgw::civetweb_bind_ip: {get_param: [ServiceNetMap, CephRgwNetwork]}
59             tripleo::profile::base::ceph::rgw::civetweb_bind_port: {get_param: [EndpointMap, CephRgwInternal, port]}
60             ceph::params::user_radosgw: ceph
61             tripleo.ceph_rgw.firewall_rules:
62               '122 ceph rgw':
63                 dport: {get_param: [EndpointMap, CephRgwInternal, port]}
64       step_config: |
65         include ::tripleo::profile::base::ceph::rgw
66       service_config_settings:
67         keystone:
68           ceph::rgw::keystone::auth::public_url: {get_param: [EndpointMap, CephRgwPublic, uri]}
69           ceph::rgw::keystone::auth::internal_url: {get_param: [EndpointMap, CephRgwInternal, uri]}
70           ceph::rgw::keystone::auth::admin_url: {get_param: [EndpointMap, CephRgwAdmin, uri]}
71           ceph::rgw::keystone::auth::user: 'swift'
72           ceph::rgw::keystone::auth::password: {get_param: SwiftPassword}
73           ceph::rgw::keystone::auth::region: {get_param: KeystoneRegion}
74           ceph::rgw::keystone::auth::tenant: 'service'