Skip to content
Snippets Groups Projects
Commit 40548969 authored by Martin Čuchran's avatar Martin Čuchran
Browse files

Add new file

parent f4681d14
No related branches found
No related tags found
No related merge requests found
{
"heat_template_version": "2016-04-08",
"parameters":{
"lab_size":{
"type": "number",
"label": "Number of servers",
"description": "Number of server instances.",
"default": "3"
},
"lab_size_desktop":{
"type": "number",
"label": "Number of desktops",
"description": "Number of desktop instances.",
"default": "1"
},
"administrator_password":{
"type": "string",
"label": "Administrator password",
"description": "Password of local Administrator account",
"default": "K0ckoP3s"
},
"pv176_password":{
"type": "string",
"label": "PV176 password",
"description": "Password of local PV176 account",
"default": "K0ckoP3s"
}
},
"resources":{
"PV176-Network":{
"type": "Lib::private_network",
"description": "Private network,subnet and router"
},
"PV176-Servers-ports": {
"type": "OS::Heat::ResourceGroup",
"depends_on": ["PV176-Network"],
"description": "Lab servers ports",
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "Lib::server_port",
"properties": {
"name": "PV176-port-%index%",
"network":{
"get_attr": ["PV176-Network","network_subnet"]
}
}
}
}
},
"PV176-Servers-public-ports": {
"type": "OS::Heat::ResourceGroup",
"depends_on": ["PV176-Network"],
"description": "Lab servers public ports",
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "Lib::server_port_public",
"properties": {
"name": "PV176-public-port-%index%",
"port_subnet": "PV176-public-subnet",
"network":{
"get_attr": ["PV176-Network","public_network_subnet"]
}
}
}
}
},
"PV176-Desktops-ports": {
"type": "OS::Heat::ResourceGroup",
"depends_on": ["PV176-Network"],
"description": "Lab desktops ports",
"properties":{
"count": { "get_param": "lab_size_desktop" },
"resource_def":{
"type": "Lib::server_port",
"properties": {
"name": "PV176-port-desktop-%index%",
"network":{
"get_attr": ["PV176-Network","network_subnet"]
}
}
}
}
},
"PV176-Desktops-public-ports": {
"type": "OS::Heat::ResourceGroup",
"depends_on": ["PV176-Network"],
"description": "Lab desktops public ports",
"properties":{
"count": { "get_param": "lab_size_desktop" },
"resource_def":{
"type": "Lib::server_port_public",
"properties": {
"name": "PV176-public-port-desktop-%index%",
"port_subnet": "PV176-public-subnet",
"network":{
"get_attr": ["PV176-Network","public_network_subnet"]
}
}
}
}
},
"PV176-Servers":{
"type": "OS::Heat::ResourceGroup",
"description": "Lab servers",
"depends_on": ["PV176-Servers-ports","PV176-Servers-public-ports","PV176-Network"],
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "Lib::server_vm",
"properties":{
"name": "PV176-server-%index%",
"network": "PV176-port-%index%",
"image": "616004ba-dd41-45b7-9941-3a721c08b077",
"network_public": "PV176-public-port-%index%",
"data": {"get_file": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/JSON/powershell/server-init.ps1"},
"administrator_password": { "get_param": "administrator_password" },
"pv176_password": { "get_param": "pv176_password" }
}
}
}
},
"PV176-Desktops":{
"type": "OS::Heat::ResourceGroup",
"description": "Lab desktops",
"depends_on": ["PV176-Servers-ports","PV176-Servers-public-ports"],
"properties":{
"count": { "get_param": "lab_size_desktop" },
"resource_def":{
"type": "Lib::server_vm",
"properties":{
"name": "PV176-desktop-%index%",
"network": "PV176-port-desktop-%index%",
"image": "6c332dca-831e-4fe2-b45b-7a5d18eb6a98",
"network_public": "PV176-public-port-desktop-%index%",
"data": {"get_file": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/JSON/powershell/desktop-init.ps1"},
"administrator_password": { "get_param": "administrator_password" },
"pv176_password": { "get_param": "pv176_password" }
}
}
}
}
},
"outputs":{
"PV176-network":{
"value":{ "get_attr": ["PV176-Network"] },
"description": "Private network information"
},
"PV176-ports":{
"value": {"get_attr": ["PV176-Servers-ports","vm_port"]},
"description": "Servers ports connected to private network"
},
"PV176-vms":{
"value": {"get_attr": ["PV176-Servers","vm"]},
"description": "List of servers"
},
"PV176-ips":{
"value": {"get_attr": ["PV176-Servers","ip"]},
"description": "List of public ip addresses"
},
"PV176-ip-associations":{
"value": {"get_attr": ["PV176-Servers","vm_association"]},
"description": "List of server/ip associations"
}
}
}
\ 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