Skip to main content

How do I run the installer without using the GUI?

Issue

  • I need to be able to automate my install with configuration files and an unattended installation.
  • I prefer to configure everything with the command line.

Environment

  • Element Enterprise Graphical Installer

Resolution

You will need to prepare the cluster.yml, deployment.yml, secrets.yml, and legacy configuration directory to cater to your deployment. The best way to do this is to use the GUI installer and just not click install. Then you can move those files around and edit them as needed.

Once you have them configured correctly, you can run the installer in an unattended fashion without the GUI by doing:

$ cd ~/.element-enterprise-server/installer
$ INSTALLER_CLUSTER_CONFIG_FILE=~/.element-enterprise-server/config/cluster.yml INSTALLER_DEPLOYMENT_FILE=~/.element-enterprise-server/config/deployment.yml INSTALLER_SECRETS_FILE=~/.element-enterprise-server/config/secrets.yml INSTALLER_LEGACY_CONFIG=~/.element-enterprise-server/config/legacy ./install.sh -t deploy

Root Cause

When we switched to a GUI installer, the primary interface stopped being command line based.