Pass in missing var

This commit is contained in:
Luke Murphy 2020-04-13 14:23:56 +02:00
parent 2cfe5f0cde
commit 9b75b3e068
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -144,6 +144,7 @@ dokku-ansible-deploy-pre-deploy() {
declare APP="$1" declare APP="$1"
declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP" declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP"
declare PLUGIN_DIR="$DOKKU_LIB_ROOT/data/deploy.d"
declare VAULT_FILE="$APP_DIR/.vault.sh" declare VAULT_FILE="$APP_DIR/.vault.sh"
declare PRE_DEPLOY="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/pre_deploy.yml" declare PRE_DEPLOY="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/pre_deploy.yml"
@ -164,6 +165,7 @@ dokku-ansible-deploy-pre-deploy() {
--extra-vars "app=$APP" \ --extra-vars "app=$APP" \
--extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \ --extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \
--extra-vars "app_config_root=$APP_DIR" \ --extra-vars "app_config_root=$APP_DIR" \
--extra-vars "plugin_config_root=$PLUGIN_DIR" \
$CMD_ARGS \ $CMD_ARGS \
$PRE_DEPLOY $PRE_DEPLOY
} }
@ -176,6 +178,7 @@ dokku-ansible-deploy-post-deploy() {
declare APP="$1" declare APP="$1"
declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP" declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP"
declare PLUGIN_DIR="$DOKKU_LIB_ROOT/data/deploy.d"
declare VAULT_FILE="$APP_DIR/.vault.sh" declare VAULT_FILE="$APP_DIR/.vault.sh"
declare POST_DEPLOY="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/post_deploy.yml" declare POST_DEPLOY="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/post_deploy.yml"
@ -196,6 +199,7 @@ dokku-ansible-deploy-post-deploy() {
--extra-vars "app=$APP" \ --extra-vars "app=$APP" \
--extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \ --extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \
--extra-vars "app_config_root=$APP_DIR" \ --extra-vars "app_config_root=$APP_DIR" \
--extra-vars "plugin_config_root=$PLUGIN_DIR" \
$CMD_ARGS \ $CMD_ARGS \
$POST_DEPLOY $POST_DEPLOY
} }
@ -208,6 +212,7 @@ dokku-ansible-deploy-post-delete() {
declare APP="$1" declare APP="$1"
declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP" declare APP_DIR="$DOKKU_LIB_ROOT/data/deploy.d/$APP"
declare PLUGIN_DIR="$DOKKU_LIB_ROOT/data/deploy.d"
declare VAULT_FILE="$APP_DIR/.vault.sh" declare VAULT_FILE="$APP_DIR/.vault.sh"
declare POST_DELETE="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/post_delete.yml" declare POST_DELETE="$PLUGIN_AVAILABLE_PATH/ansible-deploy/plays/post_delete.yml"
@ -228,6 +233,7 @@ dokku-ansible-deploy-post-delete() {
--extra-vars "app=$APP" \ --extra-vars "app=$APP" \
--extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \ --extra-vars "dokku_lib_root=$DOKKU_LIB_ROOT" \
--extra-vars "app_config_root=$APP_DIR" \ --extra-vars "app_config_root=$APP_DIR" \
--extra-vars "plugin_config_root=$PLUGIN_DIR" \
$CMD_ARGS \ $CMD_ARGS \
$POST_DELETE $POST_DELETE
} }