Newer
Older
"parameters":{
"lab_size":{
"type": "number",
"label": "Cluster size",
"description": "Number of server instances.",
"default": "2"
}
},
"instance_ports": {
"type": "OS::Heat::ResourceGroup",
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"properties":{
"count": { "get_param": "lab_size" },
"resource_def":{
"type": "OS::Nova::Server",
"properties":{
"flavor": "m1.large",
"image": "73ff33dc-346d-46c8-8786-3bbc97e21c64",
"name": "PV176-server-%index%",
"user_data": {"get_file": "https://gitlab.ics.muni.cz/396462/PV176/raw/master/Openstack/server-init.ps1"}
},
"port_ids":{
"value": {"get_attr": ["instance_ports","name"]}
},