Pass ServiceNetMap to services
[apex-tripleo-heat-templates.git] / puppet / services / swift-storage.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Swift Storage service configured with Puppet
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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   Debug:
19     default: ''
20     description: Set to True to enable debugging on all services.
21     type: string
22   SwiftMountCheck:
23     default: false
24     description: Value of mount_check in Swift account/container/object -server.conf
25     type: boolean
26
27   # DEPRECATED options for compatibility with overcloud.yaml
28   # This should be removed and manipulation of the ControllerServices list
29   # used instead, but we need client support for that first
30   ControllerEnableSwiftStorage:
31     default: true
32     description: Whether to enable Swift Storage on the Controller
33     type: boolean
34
35 parameter_groups:
36 - label: deprecated
37   description: Do not use deprecated params, they will be removed.
38   parameters:
39   - ControllerEnableSwiftStorage
40
41 outputs:
42   role_data:
43     description: Role data for the Swift Proxy role.
44     value:
45       service_name: swift_storage
46       config_settings:
47         # Swift
48         swift::storage::all::mount_check: {get_param: SwiftMountCheck}
49         tripleo::profile::base::swift::storage::enable_swift_storage: {get_param: ControllerEnableSwiftStorage}
50         tripleo.swift_storage.firewall_rules:
51           '123 swift storage':
52             dport:
53               - 873
54               - 6000
55               - 6001
56               - 6002
57         swift::storage::all::incoming_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
58         swift::storage::all::outgoing_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
59         swift::storage::all::object_pipeline:
60           - healthcheck
61           - recon
62           - object-server
63         swift::storage::all::container_pipeline:
64           - healthcheck
65           - container-server
66         swift::storage::all::account_pipeline:
67           - healthcheck
68           - account-server
69       step_config: |
70         include ::tripleo::profile::base::swift::storage