Search

Automated installation

Automated Installation

Note: Though easy and practical, this method isn’t recommended for setting up production environments.

You can install Varnish Enterprise by downloading and running this setup.sh. This will ask you for your repository token, then install the default set of Enterprise packages.

curl https://docs.varnish-software.com/scripts/setup.sh | bash

Other usages are possible for automation:

Specify a repository token for a fully automated install:

curl https://docs.varnish-software.com/scripts/setup.sh | TOKEN=YOUR_TOKEN bash

Use the INSTALL environment variable to restrict the packages you want to install and to specify their version:

curl https://docs.varnish-software.com/scripts/setup.sh | TOKEN=YOUR_TOKEN INSTALL="varnish-plus varnish-broadcaster-1.2.0-1.el7" bash

To see all the relevant environment variables

# To see all the relevant environment variables
curl -s https://docs.varnish-software.com/scripts/setup.sh | bash -s -- -h
usage: VAR1=VALUE1 VAR2=VALUE2 bash

This help script aims to provide a smooth way to setup varnish-plus repositories
as well as installing software contained in them.

It takes no arguments but instead reads environment variables to adapt its
behavior:
	TOKEN		The token to acess the repository (varnish-plus/6.0 by
				default)
	DIST		Force the Linux distribution to use (ubuntu, debian, centos).
				Setting this variable disables the OS autodection, so you will
				need to set REL too
				If set to "ask", display a menu instead of trying to guess it.
	REL			The release of the current distribution (eg. xenial for ubuntu,
				7 for centos). This is only needed if you forced DIST
	OVERWRITE	If not empty, asks before removing files (repos and gpg keys)
	INSTALL		Override the list of varnish-plus packages to install
	REPO		What repository to use (60, 60-akamai-connector,
				60-deviceatlas or 60-waf). It'll impact the default
				INSTALL value.
	VERBOSE		If not empty, run the package managers in quiet mode
	GPGKEY		Where the gpg key authenticating the repository can be
				stored (default: /tmp/varnish-plus-6.0.gpg)

®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203