Skip to content

Commit

Permalink
PAAS-2592: fetch papi script fetching before configureDatadogSite
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronan-Gorain authored and kevinvandel committed Nov 13, 2023
1 parent 757167e commit 5d80718
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mixins/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ actions:
# - target: target nodegroup or nodeid
- if ("HideThisLine" && "${globals.__secret__papiToken.print()}" == ""):
getPapiInfoAll
- installPapiScript: ${nodes.cp.first.id}
- cmd [${nodes.cp.first.id}]: |-
set -e
__secret__PAPI_TOKEN="${globals.__secret__papiToken}"
Expand Down Expand Up @@ -435,10 +436,12 @@ actions:
installPapiScript:
- setGlobalRepoRootUrl
- cmd [${this}]: |-
python3 -m pip install --upgrade pip
python3 -m pip install requests
curl -fLSso /usr/local/bin/papi.py ${globals.repoRootUrl}/assets/common/papi.py || exit 1
chmod 755 /usr/local/bin/papi.py
if [ ! -f /usr/local/bin/papi.py ]; then
python3 -m pip install --upgrade pip
python3 -m pip install requests
curl -fLSso /usr/local/bin/papi.py ${globals.repoRootUrl}/assets/common/papi.py || exit 1
chmod 755 /usr/local/bin/papi.py
fi
user: root
###################
Expand Down

0 comments on commit 5d80718

Please sign in to comment.