improved messages displayed by deboco
This commit is contained in:
parent
e3c4dba850
commit
8b7d82399d
|
@ -21,7 +21,7 @@ readonly LOG_LEVEL_ERROR=0
|
||||||
readonly LOG_LEVEL_WARNING=1
|
readonly LOG_LEVEL_WARNING=1
|
||||||
readonly LOG_LEVEL_INFO=2
|
readonly LOG_LEVEL_INFO=2
|
||||||
readonly LOG_LEVEL_DEBUG=3
|
readonly LOG_LEVEL_DEBUG=3
|
||||||
LOG_LEVEL=$LOG_LEVEL_INFO
|
LOG_LEVEL=$LOG_LEVEL_DEBUG
|
||||||
|
|
||||||
log()
|
log()
|
||||||
{
|
{
|
||||||
|
@ -333,12 +333,13 @@ deboco__update_machine()
|
||||||
|
|
||||||
reports_path="$(controller__get_reports_path "$debops_controller_path")"
|
reports_path="$(controller__get_reports_path "$debops_controller_path")"
|
||||||
mkdir -p "${reports_path}"
|
mkdir -p "${reports_path}"
|
||||||
report_file_path=${reports_path}/$(date --iso=seconds)-init-${target_host_fqdn}
|
report_file_path=${reports_path}/$(date --iso=seconds)-update-${target_host_fqdn}
|
||||||
echo "installing debops bootstrap on ${target_host_fqdn} (report stored in ${report_file_path})"
|
echo "applying debops configuration on ${target_host_fqdn} (report stored in ${report_file_path})"
|
||||||
|
|
||||||
local local_repos_path=$(controller__get_local_repos_path "$debops_controller_path")
|
local local_repos_path=$(controller__get_local_repos_path "$debops_controller_path")
|
||||||
local virtual_env_path=$(controller__get_virtualenv_path "$debops_controller_path")
|
local virtual_env_path=$(controller__get_virtualenv_path "$debops_controller_path")
|
||||||
local debops_exit_code=''
|
local debops_exit_code=''
|
||||||
|
log 'debug' "local_repos_path=$local_repos_path"
|
||||||
|
|
||||||
pushd "$local_repos_path"
|
pushd "$local_repos_path"
|
||||||
source "$virtual_env_path/bin/activate"
|
source "$virtual_env_path/bin/activate"
|
||||||
|
|
Loading…
Reference in New Issue