-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathswift.yaml
28 lines (22 loc) · 875 Bytes
/
swift.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# http://docs.openstack.org/developer/heat/template_guide/hot_spec.html#heat-template-version
heat_template_version: 2021-04-16
# NOTE: There is currently a bug not showing the URL of the Container
# properly.
description: >
A template to show the creation of an Object Storage container being created
with some metadata set. Note that the index and error HTML files will not be
uploaded by this template. You would need to upload those separately.
resources:
swift_container:
# http://docs.openstack.org/hot-reference/content/OS__Swift__Container.html
type: OS::Swift::Container
properties:
PurgeOnDelete: True
X-Container-Read: ".r:*"
X-Container-Meta:
Web-Index: index.html
Web-Error: error.html
outputs:
container_url:
description: "Container URL"
value: { get_attr: [ swift_container, WebsiteURL ] }