-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #558 from epfl-si/feature/pg-awx
[upgrade] AWX to 22.3
- Loading branch information
Showing
11 changed files
with
130 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
ansible/roles/awx-instance/templates/poor_mans_curl_lib.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{# | ||
# Tips and tricks to feed into sh(1) so as to work around the rampant | ||
# seccomp breakage in end-of-lifed OpenShift 3 | ||
# (https://github.com/moby/moby/issues/42680) | ||
# | ||
# 💡 The bizarre extraneous semicolons are here so that the script | ||
# supports being folded into a single line, for Dockerfile `RUN` bliss. | ||
#} | ||
|
||
install_it () { | ||
pip3 install requests >&2 ; | ||
} ; | ||
|
||
poorcurl () { | ||
python3 -c 'import requests; import sys; sys.stdout.buffer.write(requests.get(url = sys.argv[-1]).content)' -- "$@" ; | ||
} ; | ||
|
||
download_github_release () { | ||
poorcurl $(poorcurl "https://api.github.com/repos/$1/releases" \ | ||
| python3 -c \ | ||
"import sys; import json; import re; \ | ||
release = (r for r in json.load(sys.stdin) if r['name'] == '$2').__next__(); \ | ||
asset = (a for a in release['assets'] if a['name'].endswith('$3')).__next__(); \ | ||
print(asset['browser_download_url'])") ; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters