git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@134331 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
caec5bdf5d
commit
9ccb883cb6
|
@ -36,6 +36,8 @@ public class AnsibleSerializeHelper {
|
|||
for(String r:playbook.getRoles()) {
|
||||
out+=" - " + r+"\n";
|
||||
}
|
||||
out+=" vars:\n";
|
||||
out+=" os_package_state: present\n";
|
||||
out = out.trim();
|
||||
serialize(out, playbookFile);
|
||||
}
|
||||
|
|
|
@ -38,10 +38,10 @@ public class AlgorithmPackage {
|
|||
public Collection<Role> getRoles(TemplateManager tm) {
|
||||
Collection<Role> out = new Vector<>();
|
||||
for(String mode:new String[]{"add", "remove", "update"}) {
|
||||
String roleName = "algorithm-"+this.getAlgorithm().getName()+("add".equals(mode) ? "" : "-"+mode);
|
||||
String roleName = "gcube-algorithm-"+this.getAlgorithm().getName()+("add".equals(mode) ? "" : "-"+mode);
|
||||
try {
|
||||
// find template
|
||||
Role template = tm.getRoleTemplate("algorithm-" + mode);
|
||||
Role template = tm.getRoleTemplate("gcube-algorithm-" + mode);
|
||||
//
|
||||
if(template!=null) {
|
||||
Map<String, String> dictionary = this.getDictionary(this.getAlgorithm());
|
||||
|
|
|
@ -22,7 +22,7 @@ public class ISClient {
|
|||
* @param vreName
|
||||
* @return
|
||||
*/
|
||||
public Collection<Host> listDataminersInVRE(String scope) {
|
||||
public Collection<Host> listDataminersInVRE() {
|
||||
|
||||
boolean remote = false;
|
||||
|
||||
|
@ -34,8 +34,6 @@ public class ISClient {
|
|||
return out;
|
||||
} else {
|
||||
|
||||
ScopeProvider.instance.set(scope);
|
||||
|
||||
SimpleQuery query = queryFor(ServiceEndpoint.class);
|
||||
|
||||
query.addCondition("$resource/Profile/Category/text() eq 'DataAnalysis'")
|
||||
|
|
|
@ -110,7 +110,7 @@ public class DataminerPoolManager {
|
|||
|
||||
// create the cluster (dataminers in the vre)
|
||||
Cluster cluster = new Cluster();
|
||||
for(Host h:new ISClient().listDataminersInVRE(vre)) {
|
||||
for(Host h:new ISClient().listDataminersInVRE()) {
|
||||
cluster.addHost(h);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue