Merge "Add sriov_numvfs in THT"
[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   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   Debug:
22     default: ''
23     description: Set to True to enable debugging on all services.
24     type: string
25   SwiftMountCheck:
26     default: false
27     description: Value of mount_check in Swift account/container/object -server.conf
28     type: boolean
29   SwiftRawDisks:
30     default: {}
31     description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
32     type: json
33
34   # DEPRECATED options for compatibility with overcloud.yaml
35   # This should be removed and manipulation of the ControllerServices list
36   # used instead, but we need client support for that first
37   ControllerEnableSwiftStorage:
38     default: true
39     description: Whether to enable Swift Storage on the Controller
40     type: boolean
41
42 parameter_groups:
43 - label: deprecated
44   description: Do not use deprecated params, they will be removed.
45   parameters:
46   - ControllerEnableSwiftStorage
47
48 resources:
49   SwiftBase:
50     type: ./swift-base.yaml
51     properties:
52       ServiceNetMap: {get_param: ServiceNetMap}
53       DefaultPasswords: {get_param: DefaultPasswords}
54       EndpointMap: {get_param: EndpointMap}
55
56 outputs:
57   role_data:
58     description: Role data for the Swift Proxy role.
59     value:
60       service_name: swift_storage
61       config_settings:
62         map_merge:
63           - get_attr: [SwiftBase, role_data, config_settings]
64           - swift::storage::all::mount_check: {get_param: SwiftMountCheck}
65             tripleo::profile::base::swift::storage::enable_swift_storage: {get_param: ControllerEnableSwiftStorage}
66             tripleo.swift_storage.firewall_rules:
67               '123 swift storage':
68                 dport:
69                   - 873
70                   - 6000
71                   - 6001
72                   - 6002
73             swift::storage::all::incoming_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
74             swift::storage::all::outgoing_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
75             swift::storage::all::object_pipeline:
76               - healthcheck
77               - recon
78               - object-server
79             swift::storage::all::container_pipeline:
80               - healthcheck
81               - container-server
82             swift::storage::all::account_pipeline:
83               - healthcheck
84               - account-server
85             swift::storage::disks: {get_param: SwiftRawDisks}
86             swift::storage::all::storage_local_net_ip: {get_param: [ServiceNetMap, SwiftMgmtNetwork]}
87       step_config: |
88         include ::tripleo::profile::base::swift::storage