Testing Application credentials

This commit is contained in:
2025-07-20 18:43:26 +03:00
committed by Emin Arslan
parent 7c7f7a0218
commit d1091727b9
2 changed files with 8 additions and 4 deletions

View File

@@ -178,8 +178,12 @@ def main(): # noqa: C901 pylint: disable=too-many-branches,too-many-statements,
# new repo on git-ce.rwth-aachen.de:
hsfd_faafo_cloud_init_script = 'https://git.emin.software/haxala1r/cloud-computing-msc-ai-examples/raw/branch/main/faafo/contrib/install.sh'
appid = "d69be046470a4d7a947bf8cc3f7fb260"
appsecret = "tX_SSPqbYgQ8bkRRXgeBGxalAPXXiOpLrTAtTk3c79ijFDoFIIrPzTZIEs7NMpBwBT-z9FtJCy3hyjW1-AJmbQ"
userdata = '#!/usr/bin/env bash\n' \
f'export APPCRED_ID="{appid}"\n' \
f'export APPCRED_SECRET="{appsecret}"\n' \
f'curl -L -s {hsfd_faafo_cloud_init_script} | bash -s -- ' \
'-i faafo -i messaging -r api -r worker -r demo\n'
print('\nUsing cloud-init userdata:\n"' + userdata + '"\n')