.
This commit is contained in:
@@ -178,12 +178,8 @@ def main(): # noqa: C901 pylint: disable=too-many-branches,too-many-statements,
|
|||||||
|
|
||||||
# new repo on git-ce.rwth-aachen.de:
|
# 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'
|
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' \
|
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 -- ' \
|
f'curl -L -s {hsfd_faafo_cloud_init_script} | bash -s -- ' \
|
||||||
'-i faafo -i messaging -r api -r worker -r demo\n'
|
'-i faafo -i messaging -r api -r worker -r demo\n'
|
||||||
print('\nUsing cloud-init userdata:\n"' + userdata + '"\n')
|
print('\nUsing cloud-init userdata:\n"' + userdata + '"\n')
|
||||||
|
@@ -14,7 +14,6 @@ import base64
|
|||||||
import copy
|
import copy
|
||||||
import hashlib
|
import hashlib
|
||||||
import io
|
import io
|
||||||
import os
|
|
||||||
import socket
|
import socket
|
||||||
import uuid
|
import uuid
|
||||||
from pkg_resources import resource_filename
|
from pkg_resources import resource_filename
|
||||||
@@ -71,10 +70,10 @@ log.setup(CONF, 'api',
|
|||||||
# Initialize Swift driver
|
# Initialize Swift driver
|
||||||
Swift = get_driver(Provider.OPENSTACK_SWIFT)
|
Swift = get_driver(Provider.OPENSTACK_SWIFT)
|
||||||
driver = Swift(
|
driver = Swift(
|
||||||
os.getenv("APPCRED_ID"),
|
'CloudComp2',
|
||||||
os.getenv("APPCRED_SECRET"),
|
'demo',
|
||||||
ex_force_auth_url='https://10.32.4.29:5000/',
|
ex_force_auth_url='https://10.32.4.29:5000/',
|
||||||
ex_force_auth_version='3.x_appcred',
|
ex_force_auth_version='3.x_password',
|
||||||
ex_tenant_name='CloudComp2',
|
ex_tenant_name='CloudComp2',
|
||||||
ex_domain_name='default',
|
ex_domain_name='default',
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user