...
Expand | ||
---|---|---|
| ||
#!/bin/bash echo "Entrypoint Version 1.6" # Handle Docker Stop and Terminate Ubroker Cleanly
echo "Entrypoint Version 1.7"
# Handle Docker Stop and Terminate Ubroker Cleanly shutdown() { killkill - TERMTERM "$ubroker" waitwait "$ubroker" exit 0exit 0 } # Recognize Terminaton# Recognize Termination traptrap 'shutdown' SIGINT SIGTERM# Support Arbitrary User IDs if ! whoami &> SIGINT SIGTERM # Support Arbitrary User IDs if ! whoami &> /dev/null; thenthen ifif [ - ww /etc/ passwdpasswd ]; thenthen echoecho "${USER_NAME:-default}:x:$( idid -u):0:${USER_NAME:-default} useruser:${HOME}:/sbin/nologin" >>>> /etc/passwd fi fi# Start the Agent fi fi
# Set UBroker Message Level if [ ! -z "$UBRMSGLEVEL" ]; then sed -ri "s/^message_level.*/message_level $UBRMSGLEVEL/g" /etc/universal/ubroker.conf fi
# Set UAG Server Message Level if [ ! -z "$UAGMSGLEVEL" ]; then sed -ri "s/^message_level.*/message_level $UAGMSGLEVEL/g" /etc/universal/uags.conf fi
# Set UDM Server Message Level if [ ! -z "$UDMMSGLEVEL" ]; then sed -ri "s/^message_level.*/message_level $UDMMSGLEVEL/g" /etc/universal/udms.conf fi
# Set UCMD Server Message Level if [ ! -z "$UCMMSGLEVEL" ]; then sed -ri "s/^message_level.*/message_level $UCMMSGLEVEL/g" /etc/universal/ucmds.conf fi
# Set UAG Server Log Level if [ ! -z "$UAGLOGLEVEL" ]; then sed -ri "s/^loglvl.*/loglvl $UAGLOGLEVEL/g" /etc/universal/uags.conf fi
# Start the Agent /opt/universal/ubroker/bin/ ubrokerubroker - dest stderrdest stderr & ubroker=$! waitwait "$ubroker" |
Docker Environment Variables
...
Environment Variable | Description | Example | |||||
---|---|---|---|---|---|---|---|
OMSAUTOSTART | Specifies whether the Universal Broker starts an OMS server. Default = no | OMSAUTOSTART=yes | |||||
UAGAGENTCLUSTERS | List of Universal Controller Agent Clusters to join automatically. Default = 'Opswise - Default Linux/Unix Cluster, Opswise - Default Windows Cluster' | UAGAGENTCLUSTERS='Agent Cluster 1,Agent Cluster 2' | |||||
UAGAUTOSTART | Specifies whether the Universal Broker starts a UAG server. Default = yes | UAGAUTOSTART=no | |||||
UAGENABLESSL | Specifies whether the SSL/TLS protocol is used for network communication between UAG and OMS. Default = no | UAGENABLESSL=yes | |||||
UAGNETNAME | Sets the Agent ID to be used when the Universal Agent registers / connects to a Universal Controller Instance. Default = OPSAUTOCONF | UAGNETNAME=UADKR001 | |||||
UAGOMSSERVERS | Specifies one or more OMS server addresses. Default = 7878@localhost | UAGOMSSERVERS=7878\@omsserver1,7878\@omsserver2 | |||||
UAGTRANSIENT | Specifies whether the Agent is Transient and will be deleted or decommissioned when the Agent shuts down or goes offline. Transient Agents are suspended from any Agent Clusters that they may belong to.
Valid values are:
Default is = no. | UAGTRANSIENT=yes | |||||
UEMAUTOSTART | Specifies whether the Universal Broker starts a UEM server. Default = yes | UEMAUTOSTART=no | |||||
UBRMSGLEVEL | Specify the Universal Broker message level. Default = INFO | UBRMSGLEVEL=TRACE | |||||
UAGMSGLEVEL | Specify the UAG Server message level. Default = INFO | UAGMSGLEVEL=TRACE | |||||
UDMMSGLEVEL | Specify the UDM Server message level. Default = INFO | UDMMSGLEVEL=TRACE | |||||
UCMMSGLEVEL | Specify the UCMD Server message level. Default = INFO | UCMMSGLEVEL=TRACE | |||||
UAGLOGLEVEL | Specify the UAG Server Log Level. Default = I | UAGLOGLEVEL=T |
Docker Container Ports
The following ports may need to be mapped when running containers from the Universal Agent image.
...