Skip to content
Snippets Groups Projects
Commit 3eca0ed7 authored by Martin Cuchran's avatar Martin Cuchran
Browse files

Public ports added

parent e9901e38
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,22 @@
}
}
},
"PV176-Servers-public-ports": {
"type": "OS::Heat::ResourceGroup",
"description": "Lab servers public ports",
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "Lib::server_port",
"properties": {
"name_public": "PV176-public-port-%index%",
"network_public":{
"get_attr": ["PV176-Network","public_network_subnet"]
}
}
}
}
},
"PV176-Servers":{
"type": "OS::Heat::ResourceGroup",
"description": "Lab servers",
......
......@@ -97,6 +97,12 @@
"network_subnet":{
"value": { "get_attr": [internal_subnet, network_id] }
},
"public_network_name":{
"value": { "get_attr": [external_net] }
},
"public_network_subnet":{
"value": { "get_attr": [external_subnet, network_id] }
},
"network_router":{
"value": { "get_attr": [internal_router] }
},
......
......@@ -6,6 +6,12 @@
},
"network":{
"type": "string"
},
"name_public":{
"type": "string"
},
"network_public":{
"type": "string"
}
},
"resources":{
......@@ -16,11 +22,22 @@
"network_id":{"get_param": "network"},
"port_security_enabled": "false"
}
},
"port_public":{
"type": "OS::Neutron::Port",
"properties": {
"name": {"get_param": "name"},
"network_id":{"get_param": "network"},
"port_security_enabled": "false"
}
}
},
"outputs":{
"vm_port":{
"value": { "get_attr": ["port"] }
},
"vm_port_public":{
"value": { "get_attr": ["port_public"] }
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment