protected Map<String,Object> obtainProvisioningFlags(MachineProvisioningLocation location) { Map<String,Object> result = Maps.newLinkedHashMap(location.getProvisioningFlags(ImmutableList.of(getClass().getName()))); result.putAll(getConfig(PROVISIONING_PROPERTIES)); if (result.get("inboundPorts") == null) { Collection<Integer> ports = getRequiredOpenPorts(); if (ports != null && ports.size() > 0) result.put("inboundPorts", ports); } result.put(LocationConfigKeys.CALLER_CONTEXT.getName(), this); return result; }
@Override protected Collection<Integer> getRequiredOpenPorts() { Collection<Integer> result = super.getRequiredOpenPorts(); if (groovyTruth(getAttribute(PROXY_HTTP_PORT))) result.add(getAttribute(PROXY_HTTP_PORT)); return result; }