Files
heat-templates/hot/barbican/container_generic.yaml
Adrien Vergé e9d9662bb6 Lint YAML files
Currently most OpenStack code is linted, but YAML files are not. As a
result, sometimes YAML problems enter the code base (e.g., the key
duplicate fixed in change I7f2369adfb152fd2a74b9b105e969e653e592922).

This patch enables YAML linting in tox linting tests, using the
yamllint tool [1]. It checks syntax errors, key duplicates, and
cosmetic problems.

[1]: http://yamllint.readthedocs.org/

EDIT: It also fixes six errors (including key duplicates) that entered
the code base after the first fix change was merged.
(I7f2369adfb152fd2a74b9b105e969e653e592922)

Change-Id: Ie746230f28fe3ed0cf218201d5a3810f7bc44070
2016-06-03 11:29:04 +02:00

38 lines
963 B
YAML

heat_template_version: 2013-05-23
description: >
This template demostrates how to create Barbican generic container.
parameters:
name:
description: (optional) Human readable name for the container.
type: string
default: test_container
resources:
secret:
type: ./secret.yaml
container:
type: OS::Barbican::GenericContainer
properties:
name: { get_param: name }
secrets:
- name: test_secret
ref: { get_attr: [secret, secret_ref] }
outputs:
container_status:
description: The status of the container.
value: { get_attr: [container, status] }
container_ref:
description: The URI to the container.
value: { get_attr: [container, container_ref] }
secret_refs:
description: The URIs to secrets stored in container.
value: { get_attr: [container, secret_refs] }
consumers:
description: The URIs to container consumers.
value: { get_attr: [container, consumers] }