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

Ports to template

parent 58544662
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,6 @@
"resource_registry":{
"Lib::private_network": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-network.template",
"Lib::server_vm": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-server.template",
"Lib::server_init_script": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/server-init.ps1"
}
"Lib::server_port": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/pv176-port.template"
}
}
\ No newline at end of file
......@@ -20,16 +20,12 @@
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "OS::Neutron::Port",
"type": "Lib::server_port",
"properties": {
"name": "PV176-port-%index%",
"network_id":{
"port_name": "PV176-port-%index%",
"port_network":{
"get_attr": ["pv176-net","network_subnet"]
},
"security_groups": [
"default",
"PV176-security-group-MUNI"
]
}
}
}
}
......@@ -49,7 +45,7 @@
"port": "PV176-port-%index%"
}
],
"user_data": {"get_file": "Lib::server_init_script"}
"user_data": {"get_file": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/server-init.ps1"}
}
}
}
......
{
"heat_template_version": "2016-04-08",
"resources":{
"port":{
"type": "OS::Neutron::Port",
"properties": {
"name": {"get_param": "port_name"},
"network_id":{"get_param": "port_network"},
"security_groups": [
"default",
"PV176-security-group-MUNI"
]
}
}
},
"outputs":{
"OS::stack_id:":{
"value": { "get_resource": "port" }
},
}
}
\ 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