VVV logo VVV

Core Site Provisioner

The main site provisioner script.

Overview

A script executed as a provisioner that provisions a site. This includes cloning its provisioner template, installing and processing Nginx config files, running setup scripts, etc This script takes several arguments:

Index

get_config_value()

Takes 2 values, a key to fetch a value for, and an optional default value

Example

echo $(get_config_value 'key' 'defaultvalue')

Arguments

See also

get_hosts()

Retrieves a list of hosts for this site from the config file. Internally this relies on shyaml get-values-0

Function has no arguments.

Output on stdout

See also

get_hosts_list()

Retrieves a list of hosts for this site from the config file. Internally this relies on shyaml get-values

Function has no arguments.

Output on stdout

See also

get_primary_host()

Retrieves the first host listed for a site.

Function has no arguments.

Output on stdout

See also

vvv_get_site_config_value()

Retrieves a config value for the given site as specified in config.yml

Arguments