1 heat_template_version: ocata
4 OpenStack Swift Storage service configured with Puppet
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.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
23 description: Set to True to enable debugging on all services.
27 description: Value of mount_check in Swift account/container/object -server.conf
31 description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
33 MonitoringSubscriptionSwiftStorage:
34 default: 'overcloud-swift-storage'
37 # DEPRECATED options for compatibility with overcloud.yaml
38 # This should be removed and manipulation of the ControllerServices list
39 # used instead, but we need client support for that first
40 ControllerEnableSwiftStorage:
42 description: Whether to enable Swift Storage on the Controller
47 description: Do not use deprecated params, they will be removed.
49 - ControllerEnableSwiftStorage
53 type: ./swift-base.yaml
55 ServiceNetMap: {get_param: ServiceNetMap}
56 DefaultPasswords: {get_param: DefaultPasswords}
57 EndpointMap: {get_param: EndpointMap}
63 - get_param: SwiftMountCheck
67 - get_param: SwiftRawDisks
72 description: Role data for the Swift Proxy role.
74 service_name: swift_storage
75 monitoring_subscription: {get_param: MonitoringSubscriptionSwiftStorage}
78 - get_attr: [SwiftBase, role_data, config_settings]
79 - swift::storage::all::mount_check: {if: [swift_mount_check, true, false]}
80 tripleo::profile::base::swift::storage::enable_swift_storage: {get_param: ControllerEnableSwiftStorage}
81 tripleo.swift_storage.firewall_rules:
88 swift::storage::all::incoming_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
89 swift::storage::all::outgoing_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
90 swift::storage::all::object_pipeline:
94 swift::storage::all::container_pipeline:
97 swift::storage::all::account_pipeline:
100 swift::storage::disks::args: {get_param: SwiftRawDisks}
101 swift::storage::all::storage_local_net_ip: {get_param: [ServiceNetMap, SwiftStorageNetwork]}
103 include ::tripleo::profile::base::swift::storage
105 - name: Stop swift storage services
107 service: name={{ item }} state=stopped
109 - openstack-swift-account-auditor
110 - openstack-swift-account-reaper
111 - openstack-swift-account-replicator
112 - openstack-swift-account
113 - openstack-swift-container-auditor
114 - openstack-swift-container-replicator
115 - openstack-swift-container-updater
116 - openstack-swift-container
117 - openstack-swift-object-auditor
118 - openstack-swift-object-replicator
119 - openstack-swift-object-updater
120 - openstack-swift-object