103 lines
3.4 KiB
Plaintext
103 lines
3.4 KiB
Plaintext
{
|
|
"AWSTemplateFormatVersion" : "2010-09-09",
|
|
"Description" : "Data Processing Cluster by Sahara",
|
|
|
|
"Resources" : {
|
|
"cluster-aa-group" : {
|
|
"Type" : "OS::Nova::ServerGroup",
|
|
"Properties" : {
|
|
"name" : "cluster-aa-group",
|
|
"policies": ["anti-affinity"]
|
|
}
|
|
},
|
|
"cluster-worker-001-port" : {
|
|
"Type" : "OS::Neutron::Port",
|
|
"Properties" : {
|
|
"network_id" : "private_net",
|
|
"replacement_policy": "AUTO"
|
|
}
|
|
},
|
|
"cluster-worker-001-floating" : {
|
|
"Type" : "OS::Neutron::FloatingIP" ,
|
|
"Properties" : {
|
|
"floating_network_id" : "floating",
|
|
"port_id" : { "Ref" : "cluster-worker-001-port" }
|
|
}
|
|
},
|
|
"cluster-worker-001" : {
|
|
"Type" : "OS::Nova::Server",
|
|
"Properties" : {
|
|
"name" : "cluster-worker-001",
|
|
"flavor" : "42",
|
|
"image" : "1",
|
|
"admin_user": "root",
|
|
"networks" : [{ "port" : { "Ref" : "cluster-worker-001-port" }}],
|
|
"key_name" : "user_key",
|
|
"scheduler_hints" : {"group": {"Ref": "cluster-aa-group"}},
|
|
"user_data": {
|
|
"Fn::Join" : ["\n", ["line2", "line3"]]
|
|
}
|
|
}
|
|
},
|
|
"cluster-worker-002-port" : {
|
|
"Type" : "OS::Neutron::Port",
|
|
"Properties" : {
|
|
"network_id" : "private_net",
|
|
"replacement_policy": "AUTO"
|
|
}
|
|
},
|
|
"cluster-worker-002-floating" : {
|
|
"Type" : "OS::Neutron::FloatingIP" ,
|
|
"Properties" : {
|
|
"floating_network_id" : "floating",
|
|
"port_id" : { "Ref" : "cluster-worker-002-port" }
|
|
}
|
|
},
|
|
"cluster-worker-002" : {
|
|
"Type" : "OS::Nova::Server",
|
|
"Properties" : {
|
|
"name" : "cluster-worker-002",
|
|
"flavor" : "42",
|
|
"image" : "1",
|
|
"admin_user": "root",
|
|
"networks" : [{ "port" : { "Ref" : "cluster-worker-002-port" }}],
|
|
"key_name" : "user_key",
|
|
"scheduler_hints" : {"group": {"Ref": "cluster-aa-group"}},
|
|
"user_data": {
|
|
"Fn::Join" : ["\n", ["line2", "line3"]]
|
|
}
|
|
}
|
|
},
|
|
"cluster-master-001-port" : {
|
|
"Type" : "OS::Neutron::Port",
|
|
"Properties" : {
|
|
"network_id" : "private_net",
|
|
"replacement_policy": "AUTO"
|
|
}
|
|
},
|
|
"cluster-master-001-floating" : {
|
|
"Type" : "OS::Neutron::FloatingIP" ,
|
|
"Properties" : {
|
|
"floating_network_id" : "floating",
|
|
"port_id" : { "Ref" : "cluster-master-001-port" }
|
|
}
|
|
},
|
|
"cluster-master-001" : {
|
|
"Type" : "OS::Nova::Server",
|
|
"Properties" : {
|
|
"name" : "cluster-master-001",
|
|
"flavor" : "42",
|
|
"image" : "1",
|
|
"admin_user": "root",
|
|
"networks" : [{ "port" : { "Ref" : "cluster-master-001-port" }}],
|
|
"key_name" : "user_key",
|
|
"user_data": {
|
|
"Fn::Join" : ["\n", ["line1", "line2"]]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"Outputs" : {}
|
|
}
|