-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.baley_default.conf
More file actions
58 lines (58 loc) · 2.9 KB
/
Copy path.baley_default.conf
File metadata and controls
58 lines (58 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
## -------------------------------------------------------- ##
## This file is automatically generated by Baley / Olivaw ##
## If this file is deleted do '$ make install' again ##
## You can edit this file to change the default settings ##
## You can also edit the config file directly ##
## -------------------------------------------------------- ##
## [Settings] - Can be changed
## -------------------------------------------------------- ##
awx_root_dir="${HOME}"
# ↳ Root Directory of AWX - Default value is "${HOME}"
# Need to be an absolute path e.g "~/projects/get_git_cloned"
awx_clone_dir="/awx"
# ↳ Clone Directory of AWX - Default valus is "/awx"
# Need to be a relative path from above e.g "/my_awx"
awxdb_root_dir="${HOME}"
# ↳ Root Directory the DB - Default value is "${HOME}"
# Need to be an absolute path e.g "~/projects/get_git_cloned"
awxdb_dir="/awx_db"
# ↳ Database Directory of AWX - Default values is "/awx_db"
# Need to be a relative path from above e.g "/my_awx_db"
awx_version="20.0.0"
# ↳ AWX Version to Clone - Last & Most Stable release of official repo is "21.0.0", Default is "20.0.0"
awx_git="https://github.com/ansible/awx.git"
# ↳ AWX Git Repo - Official repo is "https://github.com/ansible/awx.git"
http="80"
# ↳ Default HTTP Port at install - Default is "80", you can later change it by running '$ baley ports'
https="443"
# ↳ Default HTTPS Port at install - Default is "443", you can later change it by running '$ baley ports'
waiting_interval="5"
# ↳ Waiting Interval - Default is "5"
save="5"
# ↳ Number of backup file - Default is 5 backup file
main_docker="tools_awx_1"
# ↳ Main Docker - Default is "tools_awx_1"
# Need to be a container name e.g "tools_awx_1"
## -------------------------------------------------------- ##
## [Vars] - You rather not touch it
## -------------------------------------------------------- ##
working_dir="$(pwd)"
# ↳ Saving the current directory in a variable.
awx_path="${awx_root_dir}${awx_clone_dir}"
# ↳ It is a variable that contains the path of the cloned repo.
awxdb_path="${awxdb_root_dir}${awxdb_dir}"
# ↳ It is a variable that contains the path of the DB.
save="$(( save - 1 ))"
# ↳ Adjust Save Var
argument=$(echo "${1}" | sed "s@^-*@@g")
# ↳ Remove "-", even trailling ones
ps_filter="label=com.docker.compose.project.working_dir=${awx_path}/tools/docker-compose/_sources"
# ↳ It is a variable that contains the filter to get the container.
docker_compose_folder="${awx_path}/tools/docker-compose/ansible/roles/sources/templates"
# ↳ Folder of docker-compose.yml.j2
docker_compose_path="${docker_compose_folder}/docker-compose.yml.j2"
# ↳ Path of docker-compose.yml.j2
docker_volume_settings="\n driver_opts:\n type: 'none'\n o: 'bind'\n device: "
# ↳ It is a variable that contains the settings of the docker volume.
## -------------------------------------------------------- ##