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:
Matthew Jones 2014-04-15 15:41:13 -04:00
parent 130d1f071f
commit 6b3d857e49
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ recursive-exclude awx/ui/static/lib/ansible *
recursive-exclude awx/settings local_settings.py*
include awx/ui/static/js/awx.min.js
include awx/ui/static/js/config.js
include tools/scripts/callback_retry.sh
include COPYING
prune awx/public
prune awx/projects

View File

@ -16,6 +16,7 @@ build_timestamp = os.getenv("BUILD",datetime.datetime.now().strftime('-%Y%m%d%H%
# Paths we'll use later
etcpath = "/etc/awx"
homedir = "/var/lib/awx"
sharedir = "/usr/share/awx"
if os.path.exists("/etc/debian_version"):
webconfig = "/etc/apache2/conf.d"
else:
@ -50,7 +51,7 @@ def proc_data_files(data_files):
# system paths (mainly useful for running tests via tox).
if hasattr(sys, 'real_prefix'):
return result
for dir,files in data_files:
includes = []
for item in files:
@ -146,6 +147,7 @@ setup(
("%s" % webconfig, ["config/awx-httpd-80.conf",
"config/awx-httpd-443.conf",
]),
("%s" % sharedir, ["tools/scripts/callback_retry.sh"]),
]
),
options = {