VVV logo VVV

Index

containsElement()

Does a bash array contain a value?

Arguments

Exit codes

network_detection()

Test that we have network connectivity with a URL. Deprecated, use check_network_connection_to_host instead

Arguments

See also

check_network_connection_to_host()

Test that we have network connectivity with a URL.

Arguments

Exit codes

network_check()

Tests network connectivity with several hosts needed for provisioning

Function has no arguments.

See also

log_to_file()

Redirects stdout to a log file in the provisioner log folder

Arguments

noroot()

Run a command that cannot be ran as root

vvv_apt_keys_has()

Tests if an apt-key has been added

Arguments

vvv_src_list_has()

Tests if an apt-source has been added

Arguments

vvv_format_output()

Takes an input string and attempts to apply terminal formatting for various colours

Example

MSG=$(vvv_format_output "<success>green!</success>, <error>red :(</error>, <url>example.com</url></>normal text")

Arguments

vvv_output()

Output to the terminal, and log to a provisioner log at the same time, with applied formatting

Arguments

vvv_info()

Prints an information message

Arguments

vvv_error()

Prints out an error message

Arguments

vvv_warn()

Prints our a warning message

Arguments

vvv_success()

Prints out a success message

Arguments

get_config_value()

Retrieves a config value from the main config YAML file Uses shyaml get-value internally

Arguments

get_config_values()

Retrieves config values from the main config YAML file Uses shyaml get-values internally

Arguments

get_config_type()

Retrieves the type of a config value from the main config YAML file Uses shyaml get-type internally

Arguments

get_config_keys()

Retrieves config keys from the main config YAML file Uses shyaml keys internally

Arguments

vvv_add_hook()

Add a bash function to execute on a hook

Example

vvv_add_hook init vvv_init_profile 0

Arguments

vvv_hook()

Executes a hook. Functions added to this hook will be executed

Example

vvv_hook before_packages

Arguments

vvv_package_install()

Installs a selection of packages via apt

Example

vvv_package_install wget curl etc