Commit 27994634 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Added demo computing resource using platform-based auth.

parent e45c4baf
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -280,7 +280,19 @@ to provide help, news and informations on your deployment. Or you can just ignor
                                                                 auth_mode = 'user_keys',
                                                                 wms = None,
                                                                 conf = {'host': 'standaloneworker'},
                                                                 container_engines = ['singularity','podman'])
                                                                 container_engines = ['podman','singularity'])

            # Demo standalone platform computing plus conf
            demo_singlenode_computing = Computing.objects.create(name = 'Demo Standalone Platform',
                                                                 description = 'A demo standalone computing resource access as platform.',
                                                                 type = 'standalone',
                                                                 arch = 'amd64',
                                                                 supported_archs = ['386'],
                                                                 access_mode = 'ssh+cli',
                                                                 auth_mode = 'platform_keys',
                                                                 wms = None,
                                                                 conf = {'host': 'standaloneworker', 'user': 'testuser'}, # TODO: use a dedicated user?
                                                                 container_engines = ['podman','singularity'])

            # Add testuser extra conf for this computing resource
            testuser.profile.add_extra_conf(conf_type = 'computing_user', object=demo_singlenode_computing, value= 'testuser')