The installation process for Stingray uses an interactive command-line tool. I'd like to understand how to perform an unattended installation - do I need to script the tool?
Solved! Go to Solution.
zinstall is the interactive script used to install the software version of Stingray Traffic Manager. It lays out the files in the filesystem, and then optionally calls the 'configure' script to perform initial configuration and customization - admin password, license key, etc.
zinstall can record its installation options to a replay file, and then replay the options when installing on a different machine.
To create a replay file, use the --record-to option to zinstall:
# ./zinstall --record-to=install.txt
NOTE: When asked to perform initial configuration, you must answer 'No', otherwise no replay file will be created. The install and configure steps have to be recorded and replayed separately.
To replay this installation, use the --replay-from option:
# ./zinstall --replay-from=install.txt
This runs the zinstall script using the answers provided in the replay file. If a question is encountered that isn't answered, the normal prompt will appear, waiting for the answer. You can specify the --noninteractive option on the command line to cause zinstall to abort instead.
zinstall and configure are separate steps; typically, you would create a gold image of the Stingray software's filesystem using zinstall, and then 'personalize' it on each instance using configure.
To record a configure script, use the --record-to option to configure:
# ./configure --record-to=configure.txt
To replay these configuration steps, use the --replay-from option:
# ./configure --replay-from=configure.txt
Note that passwords will appear in plaintext inside the replay file, but they will not printed in the output of the configure program. You might like to record the configuration, and then delete the line in the replay file that contains the password. You will then be prompted for the password when you run configure, unless the --noninteractive option was passed.