Merge "Added method to OpenStackHeatStack to return OpenStackRouter objects."
[snaps.git] / snaps / openstack / tests / heat / volume_heat_template.yaml
1 ##############################################################################
2 # Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs")
3 #                    and others.  All rights reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at:
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 ##############################################################################
17 heat_template_version: 2015-04-30
18
19 description: Simple template to deploy a single volume with encryption
20
21 parameters:
22   volume_name:
23     type: string
24     label: Volume name
25     description: The name of the volume
26     default: test-vol-name
27   volume_type_name:
28     type: string
29     label: Volume Type name
30     description: The name of the volume type
31     default: test-vol-type-name
32
33 resources:
34   volume_type:
35       type: OS::Cinder::VolumeType
36       properties:
37         name: { get_param: volume_type_name }
38
39   encryption_vol_type:
40     type: OS::Cinder::EncryptedVolumeType
41     properties:
42       provider: nova.volume.encryptors.luks.LuksEncryptor
43       control_location: front-end
44       volume_type: { get_resource: volume_type }
45
46   volume:
47     type: OS::Cinder::Volume
48     properties:
49       name: { get_param: volume_name }
50       size: 1
51       volume_type: { get_resource: encryption_vol_type }