summaryrefslogtreecommitdiffstats
path: root/src/test/resources/heatExample.yaml
diff options
context:
space:
mode:
authorMichael Lando <ml636r@att.com>2017-02-15 16:02:49 +0200
committerMichael Lando <ml636r@att.com>2017-02-15 16:03:20 +0200
commit4e33d89a0863f5f4ec95f537f5f60241e28132c3 (patch)
treeb0f7bef94ecb2e99dfa608e52c007f8c6acc1471 /src/test/resources/heatExample.yaml
parent78744d32005cd31e7c4954bfcdf546802fbbc0f5 (diff)
Initial OpenECOMP sdc-distribution-client commit
Change-Id: I6dd20cdaf36d22836db1e9b6956c90652b6a38d7 Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'src/test/resources/heatExample.yaml')
-rw-r--r--src/test/resources/heatExample.yaml52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/test/resources/heatExample.yaml b/src/test/resources/heatExample.yaml
new file mode 100644
index 0000000..85b4e7c
--- /dev/null
+++ b/src/test/resources/heatExample.yaml
@@ -0,0 +1,52 @@
+heat_template_version: 2013-05-23
+
+description: Simple template to deploy a stack with two virtual machine instances
+
+parameters:
+ image_name_1:
+ type: string
+ label: Image Name
+ description: SCOIMAGE Specify an image name for instance1
+ default: cirros-0.3.1-x86_64
+ image_name_2:
+ type: string
+ label: Image Name
+ description: SCOIMAGE Specify an image name for instance2
+ default: cirros-0.3.1-x86_64
+ network_id:
+ type: string
+ label: Network ID
+ description: SCONETWORK Network to be used for the compute instance
+ hidden: true
+ constraints:
+ - length: { min: 6, max: 8 }
+ description: Password length must be between 6 and 8 characters.
+ - range: { min: 6, max: 8 }
+ description: Range description
+ - allowed_values:
+ - m1.small
+ - m1.medium
+ - m1.large
+ description: Allowed values description
+ - allowed_pattern: "[a-zA-Z0-9]+"
+ description: Password must consist of characters and numbers only.
+ - allowed_pattern: "[A-Z]+[a-zA-Z0-9]*"
+ description: Password must start with an uppercase character.
+ - custom_constraint: nova.keypair
+ description: Custom description
+
+resources:
+ my_instance1:
+ type: OS::Nova::Server
+ properties:
+ image: { get_param: image_name_1 }
+ flavor: m1.small
+ networks:
+ - network : { get_param : network_id }
+ my_instance2:
+ type: OS::Nova::Server
+ properties:
+ image: { get_param: image_name_2 }
+ flavor: m1.tiny
+ networks:
+ - network : { get_param : network_id } \ No newline at end of file