From cda2161d12c5029351fd3fd152f8b42fa62db09a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20=C4=8Cuchran?= <396462@mail.muni.cz>
Date: Wed, 1 Feb 2017 15:10:42 +0100
Subject: [PATCH] Update infrastructure_init.yaml

---
 Openstack/infrastructure_init.yaml | 36 +++++++++---------------------
 1 file changed, 10 insertions(+), 26 deletions(-)

diff --git a/Openstack/infrastructure_init.yaml b/Openstack/infrastructure_init.yaml
index a8cc895..d8ea408 100644
--- a/Openstack/infrastructure_init.yaml
+++ b/Openstack/infrastructure_init.yaml
@@ -1,5 +1,10 @@
 heat_template_version: '2016-04-08'
 
+parameters:
+    p_internal_net:    
+    p_full_access_secgroup:
+    
+
 resources:
   internal_net:
     type: OS::Neutron::Net
@@ -35,30 +40,9 @@ resources:
           remote_ip_prefix: 10.0.0.0/8
           port_range_min: 1
           port_range_max: 65000
-          
-  instance_port_1:
-    type: OS::Neutron::Port
-    properties:
-      network: {get_resource: internal_net}
-      security_groups:
-        - default
-        - { get_resource: full_access_secgroup }
-
-  floating_ip_1:
-    type: OS::Nova::FloatingIP
-    properties:
-      pool: public-float-21      
 
-  Server_1:
-    type: OS::Nova::Server
-    properties:
-      flavor: m1.medium
-      image: 7c24d54a-0ec9-47d3-902c-c263c81b48b4
-      networks:
-        - port: { get_resource: instance_port_1 }
-                
-  association_1:
-    type: OS::Nova::FloatingIPAssociation
-    properties:
-      floating_ip: { get_resource: floating_ip_1 }
-      server_id: { get_resource: Server_1 }
\ No newline at end of file
+outputs:
+  p_internal_net:
+    value: { get_resource: internal_net }
+  p_full_access_secgroup:
+    value: { get_resource: full_access_secgroup }
\ No newline at end of file
-- 
GitLab