summaryrefslogtreecommitdiffstats
path: root/Test-cases/SampleHeat.yaml
diff options
context:
space:
mode:
authorNauman Ahad <Nauman_Ahad@dell.com>2015-08-14 14:30:41 -0700
committerNauman Ahad <Nauman_Ahad@dell.com>2015-08-14 14:30:41 -0700
commit12b2b2c38e01a00c07c09b924a5b62f8ddc74145 (patch)
tree37ee93a9c36f6aac8e6b12e5e9111af7c99be30d /Test-cases/SampleHeat.yaml
parentbe6d041ae8279f7a8e6de4153217108a7b383637 (diff)
Added automation script, 2 test cases, Heat template for test case, Project INFO files
Structured existing playbooks into directories, added automations scripts and test cases which were demonstrated in demo1. Basic Directoy structure also introduced. All hard coded values removed. JIRA: QTIP-3 Change-Id: Icdceb0f125a5275d3dee7845a403e567d729dc26 Signed-off-by: Nauman Ahad <Nauman_Ahad@dell.com>
Diffstat (limited to 'Test-cases/SampleHeat.yaml')
-rw-r--r--Test-cases/SampleHeat.yaml93
1 files changed, 93 insertions, 0 deletions
diff --git a/Test-cases/SampleHeat.yaml b/Test-cases/SampleHeat.yaml
new file mode 100644
index 00000000..0cf0c45f
--- /dev/null
+++ b/Test-cases/SampleHeat.yaml
@@ -0,0 +1,93 @@
+ heat_template_version: 2014-10-16
+
+ description: Test10
+
+ parameters:
+
+ public_network:
+ type: string
+ label: Public Network name or ID
+ description: Public network with floating IPs
+ default: "provider_network"
+
+ private_net_name:
+ type: string
+ default: "private_network"
+
+ availability_zone:
+ type: string
+ description: The Availability Zone to launch the instance.
+ default: compute1
+
+ resources:
+
+ private_network:
+ type: OS::Neutron::Net
+
+
+ private_subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ network_id: { get_resource: private_network }
+ cidr: 10.10.17.0/24
+ dns_nameservers:
+ - 8.8.8.8
+
+ router_1:
+ type: OS::Neutron::Router
+ properties:
+ external_gateway_info:
+ network: { get_param: public_network }
+
+ router_interface:
+ type: OS::Neutron::RouterInterface
+ properties:
+ router_id: { get_resource: router_1 }
+ subnet: { get_resource: private_subnet }
+
+ public_port:
+ type: OS::Neutron::Port
+ properties:
+ network: { get_resource: private_network }
+ security_groups: [{ get_resource: demo1_security_Group }]
+
+ floating_ip:
+ type: OS::Neutron::FloatingIP
+ properties:
+ floating_network: { get_param: public_network }
+
+ floating_ip_assoc:
+ type: OS::Neutron::FloatingIPAssociation
+ properties:
+ floatingip_id: { get_resource: floating_ip }
+ port_id: { get_resource: public_port }
+
+ demo1_security_Group:
+ type: OS::Neutron::SecurityGroup
+ properties:
+ name: demo1_security_Group
+ rules:
+ - protocol: tcp
+ port_range_min: 22
+ port_range_max: 22
+ - protocol: icmp
+
+ my_instance:
+ type: OS::Nova::Server
+ properties:
+ image: CentOS
+ flavor: m1.large
+ availability_zone: { get_param: availability_zone }
+ networks:
+ - port: { get_resource: public_port }
+
+
+
+ outputs:
+ instance_ip:
+ description: IP address of the instance
+ value: { get_attr: [floating_ip, floating_ip_address] }
+
+
+
+