Files
Matt Ficken 90afe7b8db configuration updates
Former-commit-id: 889874a5782713f5f488b83a1c2e1092e1defdd1
2013-10-11 12:01:21 -07:00

110 lines
3.0 KiB
Groovy

import com.mostc.pftt.host.*;
static def getFileServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
static def getFileServerVolume() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
return "B:";
else
return "E:";
}
// database
static def getDatabaseServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// ftp
static def getFTPServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// http
static def getHTTPServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// soap
static def getSOAPServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// xmlrpc
static def getXMLRPCServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// imap (email)
static def getIMAPServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
// ldap (directory)
static def getLDAPServerHost() {
String addr = LocalHost.getInstance().getAddress()
// autodetect which network this is running on
if (addr.startsWith("192."))
// home network
return new SSHHost("J-2012sp0", "administrator", "password01!");
else
// MOSTC
return new SSHHost("10.200.50.135", "administrator", "password01!");
}
getBinding().setVariable("CommonConfig", new CommonConfig());