esi-deploy
Available functions
All functions have to be called according to the ESI standard, using colons, e.g. lib:FUNCTIONNAME(params)
Documentation
ENABLE_DEFAULT_WEBAPISERVER(WebAPIServerName,WebAPIPort,UseSSL)
Inmation WebAPI Server will be enabled
Parameters
UseSSL
Default nil for HTTP binding; set true for the Web API endpoint to use https://…; endpoint. Note: this requires a certificate binding on the WebAPIPort.
INIT_INTSERVER(args)
Initialise the Interface Server objects based on naming conventions (SERVERTYPE-SHORTCODE-EXTENSION1\{-EXTENSION2})
INIT_CONNECTOR(args)
Initialize Connector object according to naming convention (SHORTCODE-EXTENSION1\{-EXTENSION2})
INIT_RELAY(args)
Initialize Relay object according to naming convention (SHORTCODE-RELAY\{-INSTANCE})
Parameters
instanceNumber
instance number of the Relay; if defined this is assumed to be one of a Relay pair, if nil there is just a single Relay
Usage
-- Creating a Relay-object below a Master-Core
(require "esi-deploy"):INIT_RELAY({
shortCode = "SITE",
relayHost = "D-SITE-Relay-1",
})
-- Creating a Relay-object below a Local-Core, that itself exists below a Relay
(require "esi-deploy"):INIT_RELAY({
shortCode = "SITE",
relayHost = "D-SITE-Relay-1",
hasLocalCore = 1,
hasCoreRelay1 = 1
})
INIT_MONGODB_PSS(args)
Initialize MongoDB replicaset with custom datastores according to naming convention. Random password will be generated.
Parameters
Usage
-- Initialize MongoDB replicaset objects for Master-Core
(require "esi-deploy"):INIT_MONGODB_PSS({
PrimaryHost = "D-GXPC-RepA",
SecondaryHost1 = "D-GXPC-RepB",
SecondaryHost2 = "D-GXPC-RepC",
RetentionTimeNonGxpDays = 365,
RetentionTimeGxpDays = 365
})
-- Initialize MongoDB replicaset objects for Local-Core 'SITE'
(require "esi-deploy"):INIT_MONGODB_PSS({
PrimaryHost = "D-GXPC-RepD",
SecondaryHost1 = "D-GXPC-RepE",
SecondaryHost2 = "D-GXPC-RepF",
ShortCode = "SITE",
IsLocalCore = true,
RetentionTimeNonGxpDays = 365,
RetentionTimeGxpDays = 365
})