e9d9662bb6
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
69 lines
1.9 KiB
YAML
69 lines
1.9 KiB
YAML
heat_template_version: 2013-05-23
|
|
|
|
description: >
|
|
This template demostrates how to create Barbican Order - resource which
|
|
allows to generate some secret material.
|
|
|
|
parameters:
|
|
name:
|
|
description: (optional) Human readable name for the generated secret.
|
|
type: string
|
|
default: test_order
|
|
type:
|
|
description: The type of the order.
|
|
type: string
|
|
default: key
|
|
payload_content_type:
|
|
description: (optional) The type/format the secret data is provided in.
|
|
type: string
|
|
default: application/octet-stream
|
|
expiration:
|
|
description: >
|
|
(optional) The expiration date for the secret in ISO-8601 format.
|
|
If set, the secret will not be available after this time.
|
|
type: string
|
|
default: 2017-12-28T19:14:44.180394
|
|
algorithm:
|
|
description: >
|
|
(optional) The algorithm type used to generate the secret.
|
|
Required for key and asymmetric types of order.
|
|
type: string
|
|
default: aes
|
|
bit_length:
|
|
description: >
|
|
(optional) The bit-length of the secret.
|
|
Required for key and asymmetric types of order.
|
|
type: number
|
|
default: 256
|
|
mode:
|
|
description: >
|
|
(optional) The type/mode of the algorithm associated
|
|
with the secret information.
|
|
type: string
|
|
default: cbc
|
|
|
|
|
|
resources:
|
|
order:
|
|
type: OS::Barbican::Order
|
|
properties:
|
|
name: { get_param: name }
|
|
type: { get_param: type }
|
|
payload_content_type: { get_param: payload_content_type }
|
|
expiration: { get_param: expiration }
|
|
algorithm: { get_param: algorithm }
|
|
bit_length: { get_param: bit_length }
|
|
mode: { get_param: mode }
|
|
|
|
|
|
outputs:
|
|
order_status:
|
|
description: The status of the order.
|
|
value: { get_attr: [order, status] }
|
|
order_ref:
|
|
description: The URI to the order.
|
|
value: { get_attr: [order, order_ref] }
|
|
secret_ref:
|
|
description: The URI to the created secret.
|
|
value: { get_attr: [order, secret_ref] }
|