summaryrefslogtreecommitdiff
path: root/hot/swift.yaml
blob: 44bd6036e1583f940f09a79aa66ffdf2e312fe8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
heat_template_version: 2013-05-23
description: Template which creates a Swift container resource

resources:
  SwiftContainerWebsite:
    deletion_policy: "Delete"
    type: OS::Swift::Container
    properties:
      X-Container-Read: ".r:*"
      X-Container-Meta:
        web-index: "index.html"
        web-error: "error.html"

  SwiftContainer:
    type: OS::Swift::Container

outputs:
  WebsiteURL:
    description: "URL for website hosted on S3"
    value: { get_attr: [SwiftContainerWebsite, WebsiteURL] }
  DomainName:
    description: "Domain of Swift host"
    value: { get_attr: [SwiftContainer, DomainName] }