1 heat_template_version: pike
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: Role name on which the service is applied
22 description: Parameters specific to the role
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
31 description: Set to True to enable debugging on all services.
35 description: Value of mount_check in Swift account/container/object -server.conf
39 description: 'A hash of additional raw devices to use as Swift backend (eg. {sdb: {}})'
41 MonitoringSubscriptionSwiftStorage:
42 default: 'overcloud-swift-storage'
45 # DEPRECATED options for compatibility with overcloud.yaml
46 # This should be removed and manipulation of the ControllerServices list
47 # used instead, but we need client support for that first
48 ControllerEnableSwiftStorage:
50 description: Whether to enable Swift Storage on the Controller
55 description: Do not use deprecated params, they will be removed.
57 - ControllerEnableSwiftStorage
61 type: ./swift-base.yaml
63 ServiceNetMap: {get_param: ServiceNetMap}
64 DefaultPasswords: {get_param: DefaultPasswords}
65 EndpointMap: {get_param: EndpointMap}
66 RoleName: {get_param: RoleName}
67 RoleParameters: {get_param: RoleParameters}
73 - get_param: SwiftMountCheck
77 - get_param: SwiftRawDisks
82 description: Role data for the Swift Proxy role.
84 service_name: swift_storage
85 monitoring_subscription: {get_param: MonitoringSubscriptionSwiftStorage}
88 - get_attr: [SwiftBase, role_data, config_settings]
89 - swift::storage::all::mount_check: {if: [swift_mount_check, true, false]}
90 tripleo::profile::base::swift::storage::enable_swift_storage: {get_param: ControllerEnableSwiftStorage}
91 tripleo.swift_storage.firewall_rules:
98 swift::storage::all::incoming_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
99 swift::storage::all::outgoing_chmod: 'Du=rwx,g=rx,o=rx,Fu=rw,g=r,o=r'
100 swift::storage::all::object_pipeline:
104 swift::storage::all::container_pipeline:
107 swift::storage::all::account_pipeline:
110 swift::storage::disks::args: {get_param: SwiftRawDisks}
111 swift::storage::all::storage_local_net_ip: {get_param: [ServiceNetMap, SwiftStorageNetwork]}
113 include ::tripleo::profile::base::swift::storage
115 - name: Stop swift storage services
117 service: name={{ item }} state=stopped
119 - openstack-swift-account-auditor
120 - openstack-swift-account-reaper
121 - openstack-swift-account-replicator
122 - openstack-swift-account
123 - openstack-swift-container-auditor
124 - openstack-swift-container-replicator
125 - openstack-swift-container-updater
126 - openstack-swift-container
127 - openstack-swift-object-auditor
128 - openstack-swift-object-replicator
129 - openstack-swift-object-updater
130 - openstack-swift-object