netoik-cicd/tests/tests.conf

65 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

temp="${PWD}/.temp"
name="$(make --silent name)"
bin_dir="$(rpm --eval '%{_bindir}')"
run_dir="$(rpm --eval '%{_rundir}')"
sysconf_dir="$(rpm --eval '%{_sysconfdir}')"
tmp_dir="$(rpm --eval '%{_tmppath}')"
var_dir="$(rpm --eval '%{_var}')"
deployer_bin="${temp}${bin_dir}/${name}-deployer"
pipeline_bin="${temp}${bin_dir}/${name}-pipeline"
runner_bin="${temp}${bin_dir}/${name}-runner"
conf_file="${temp}${sysconf_dir}/${name}/${name}.conf"
errs_file="${temp}${sysconf_dir}/${name}/errors.conf"
# Name of group unifying git and runner.
git_runner_groupname="$(id --group --name)"
# Name of group unifying runner and deployer.
runner_deployer_groupname="$(id --group --name)"
# Name of the user responsible of the deployer server.
deployer_username="$(id --user --name)"
# Location of unixsock file used to send requests to the deployer server.
deployer_sock="${temp}${run_dir}/${name}/deployer/deployer.sock"
# Location of deployer pid.
deployer_pid="${temp}${run_dir}/${name}/pids/deployer.pid"
# Maximum number of seconds to wait for deployer response.
# Set to 0 to disable timeout.
deployer_timeout=30
# Name of the user responsible of the runner server.
runner_username="$(id --user --name)"
# Location of unixsock file used to send requests to the runner server.
runner_sock="${temp}${run_dir}/${name}/runner/runner.sock"
# Location of deployer pid.
runner_pid="${temp}${run_dir}/${name}/pids/runner.pid"
# Directory in which to clone git repositories.
runner_cloning_dir="${temp}${tmp_dir}/${name}/repositories"
# Maximum number of seconds to wait for runner response.
# Set to 0 to disable timeout.
runner_timeout=120
# Directory in which to create pipeline sock files.
pipeline_sock_dir="${temp}${run_dir}/${name}/pipeline"
# Directory containing all the git repositories.
repos_dir="${temp}${var_dir}/${name}/repositories"
# Directory containing rpm packages.
rpms_dir="${temp}${var_dir}/${name}/RPMS"
# Some other vars.
deployer_sock_dir="$(dirname "${deployer_sock}")"
runner_sock_dir="$(dirname "${runner_sock}")"
response_sock="${temp}${run_dir}/${name}/response.sock"
response_sock_dir="$(dirname "${response_sock}")"