feat: first pass at haproxy plugin implementation

This commit is contained in:
Jose Diaz-Gonzalez
2022-08-17 18:37:32 -04:00
parent 89cf4a5e76
commit 237aae9eec
19 changed files with 587 additions and 2 deletions

17
plugins/haproxy-vhosts/install Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
trigger-haproxy-install() {
declare desc="installs the haproxy plugin"
declare trigger="install"
mkdir -p "${DOKKU_LIB_ROOT}/data/haproxy"
chown -R "${DOKKU_SYSTEM_USER}:${DOKKU_SYSTEM_GROUP}" "${DOKKU_LIB_ROOT}/data/haproxy"
fn-plugin-property-setup "haproxy"
}
trigger-caddy-install "$@"