When you need to automate or repeat installations, you can set the installer to perform a non-interactive installation, based on an answer file, which the installer can create automatically from the answers you specify during an interactive installation.

Use -r, -a, and -d switches

The install script has the following options:

$ ./rhino-install.sh -h
Usage: ./rhino-install.sh [options]

Command line options:
-h, --help        - Print this usage message.
-a                - Perform an automated install. This will perform a
non-interactive install using the installation defaults.
-r <file>         - Reads in the properties from <file> before starting the
install. This will set the installation defaults
to the values contained in the properties file.
-d <file>         - Outputs a properties file containing the selections
made during install (suitable for use with -r).

You’ll use:

  • -d to create the answer file

  • -r to read the answer file

  • -a to install in non-interactive mode.

For example, to create the answer file:

$ ./rhino-install.sh -d answer.config

And then to install, unattended, based on that answer file:

$ ./rhino-install.sh -r answer.config -a
Warning After installing multiple nodes for a cluster unattended, you must manually copy the keystores between them, so the clients can connect.

Sample "answer" file

Below is an example of an answer file:

DEFAULT_RHINO_HOME=/home/rhino/rhino
DEFAULT_RHINO_BASE=/home/rhino/rhino
DEFAULT_RHINO_WORK_DIR=/home/rhino/rhino/work
DEFAULT_JAVA_HOME=/usr/local/java
DEFAULT_JVM_ARCH=32
DEFAULT_FILE_URL=file:
DEFAULT_MANAGEMENT_DATABASE_NAME=rhino
DEFAULT_MANAGEMENT_DATABASE_HOST=localhost
DEFAULT_MANAGEMENT_DATABASE_PORT=5432
DEFAULT_MANAGEMENT_DATABASE_USER=rhino
DEFAULT_MANAGEMENT_DATABASE_PASSWORD=password
DEFAULT_SESSION_OWNERSHIP_FACILITY_ENABLED=False
DEFAULT_REPLICATED_STORAGE_RESOURCE=DomainedMemoryDatabase
DEFAULT_CASSANDRA_CONTACT_POINTS=localhost
DEFAULT_CASSANDRA_PORT=9042
DEFAULT_RMI_MBEAN_REGISTRY_PORT=1199
DEFAULT_JMX_SERVICE_PORT=1202
DEFAULT_RHINO_SSL_PORT=1203
DEFAULT_SNAPSHOT_BASEPORT=42000
DEFAULT_HEAP_SIZE=1024m
DEFAULT_MAX_NEW_SIZE=128m
DEFAULT_NEW_SIZE=128m
DEFAULT_RHINO_PUBLIC_STORE_PASS=changeit
DEFAULT_RHINO_PRIVATE_STORE_PASS=changeit
DEFAULT_RHINO_PUBLIC_KEY_PASS=changeit
DEFAULT_RHINO_PRIVATE_KEY_PASS=changeit
DEFAULT_RHINO_PASSWORD=password
DEFAULT_RHINO_USERNAME=admin
DEFAULT_LOCALIPS="[fe80:0:0:0:230:1bff:febc:1f29%2] 192.168.0.1 [0:0:0:0:0:0:0:1%1] 127.0.0.1"
DEFAULT_RHINO_WATCHDOG_STUCK_INTERVAL=45000
DEFAULT_RHINO_WATCHDOG_THREADS_THRESHOLD=50
DEFAULT_SAVANNA_COMMS_MODE=MULTICAST
DEFAULT_SAVANNA_SCAST_BASE_PORT=12000
DEFAULT_SAVANNA_SCAST_PORT_OFFSET=101
DEFAULT_SAVANNA_CLUSTER_ID=100
DEFAULT_SAVANNA_CLUSTER_ADDR=224.0.50.1
DEFAULT_SAVANNA_MCAST_START=224.0.50.1
DEFAULT_SAVANNA_MCAST_END=224.0.50.8
DEFAULT_RHINO_WATCHDOG_THREADS_THRESHOLD=50
DEFAULT_LICENSE=-
DEFAULT_SAVANNA_SCAST_ENDPOINT_NODE=""
Previous page Next page