in software/nosql/src/main/java/org/apache/brooklyn/entity/nosql/couchbase/CouchbaseNodeSshDriver.java [259:282]
public String getOsTag() {
// couchbase only provide certain versions; if on other platforms let's suck-it-and-see
String family;
if (osName.contains("debian")) family = "debian7_";
else if (osName.contains("ubuntu")) family = "ubuntu12.04_";
else if (osName.contains("centos") || osName.contains("rhel") || (osName.contains("red") && osName.contains("hat")))
family = "centos6.";
else {
log.warn("Unrecognised OS " + os + " of " + context + "; assuming RPM distribution of Couchbase");
family = "centos6.";
}
if (!is64bit && !isV3OrLater) {
// NB: 32-bit binaries aren't (yet?) available for v30
log.warn("32-bit binaries for Couchbase might not be available, when deploying " + context);
}
String arch = !is64bit ? "x86" : !isRpm && isV3OrLater ? "amd64" : "x86_64";
String fileExtension = isRpm ? ".rpm" : ".deb";
if (isV3OrLater)
return family + arch + fileExtension;
else
return arch + fileExtension;
}