mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
Add an example script that will retry a tower callback request if it does not receive a 202. will retry 5 times with a 5 second interval between each run
This commit is contained in:
@@ -16,6 +16,7 @@ recursive-exclude awx/ui/static/lib/ansible *
|
|||||||
recursive-exclude awx/settings local_settings.py*
|
recursive-exclude awx/settings local_settings.py*
|
||||||
include awx/ui/static/js/awx.min.js
|
include awx/ui/static/js/awx.min.js
|
||||||
include awx/ui/static/js/config.js
|
include awx/ui/static/js/config.js
|
||||||
|
include tools/scripts/callback_retry.sh
|
||||||
include COPYING
|
include COPYING
|
||||||
prune awx/public
|
prune awx/public
|
||||||
prune awx/projects
|
prune awx/projects
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -16,6 +16,7 @@ build_timestamp = os.getenv("BUILD",datetime.datetime.now().strftime('-%Y%m%d%H%
|
|||||||
# Paths we'll use later
|
# Paths we'll use later
|
||||||
etcpath = "/etc/awx"
|
etcpath = "/etc/awx"
|
||||||
homedir = "/var/lib/awx"
|
homedir = "/var/lib/awx"
|
||||||
|
sharedir = "/usr/share/awx"
|
||||||
if os.path.exists("/etc/debian_version"):
|
if os.path.exists("/etc/debian_version"):
|
||||||
webconfig = "/etc/apache2/conf.d"
|
webconfig = "/etc/apache2/conf.d"
|
||||||
else:
|
else:
|
||||||
@@ -50,7 +51,7 @@ def proc_data_files(data_files):
|
|||||||
# system paths (mainly useful for running tests via tox).
|
# system paths (mainly useful for running tests via tox).
|
||||||
if hasattr(sys, 'real_prefix'):
|
if hasattr(sys, 'real_prefix'):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
for dir,files in data_files:
|
for dir,files in data_files:
|
||||||
includes = []
|
includes = []
|
||||||
for item in files:
|
for item in files:
|
||||||
@@ -146,6 +147,7 @@ setup(
|
|||||||
("%s" % webconfig, ["config/awx-httpd-80.conf",
|
("%s" % webconfig, ["config/awx-httpd-80.conf",
|
||||||
"config/awx-httpd-443.conf",
|
"config/awx-httpd-443.conf",
|
||||||
]),
|
]),
|
||||||
|
("%s" % sharedir, ["tools/scripts/callback_retry.sh"]),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
Reference in New Issue
Block a user