Ignore:
Timestamp:
Mar 9, 2010 1:08:05 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
4e9719b
Parents:
c2c153b
Message:

SEER support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/protogeni_access.py

    rc2c153b r9b3627e  
    5656        """
    5757
     58        def software_list(v):
     59            l = [ ]
     60            if v:
     61                ps = v.split(" ")
     62                while len(ps):
     63                    loc, file = ps[0:2]
     64                    del ps[0:2]
     65                    l.append((loc, file))
     66            return l
     67
    5868        # Make sure that the configuration is in place
    5969        if not config:
     
    6878        self.userconfcmd = config.get("access","userconfcmd")
    6979        self.userconfurl = config.get("access","userconfurl")
     80        self.federation_software = config.get("access", "federation_software")
     81        self.portal_software = config.get("access", "portal_software")
    7082        self.ssh_port = config.get("access","ssh_port") or "22"
    7183        self.sshd = config.get("access","sshd")
     
    7789        self.staging_host = config.get("access", "staging_host") \
    7890                or "ops.emulab.net"
     91   
     92        self.federation_software = software_list(self.federation_software)
     93        self.portal_software = software_list(self.portal_software)
    7994
    8095        self.renewal_interval = config.get("access", "renewal") or (3 * 60 * 60)
     
    970985                get_url(s, certfile, softdir)
    971986
     987            # Copy local portal node software to the tempdir
     988            for s in (self.portal_software, self.federation_software):
     989                for l, f in s:
     990                    base = os.path.basename(f)
     991                    copy_file(f, "%s/%s" % (softdir, base))
     992
     993            # Ick.  Put this python rpm in a place that it will get moved into
     994            # the staging area.  It's a hack to install a modern (in a Roman
     995            # sense of modern) python on ProtoGENI
     996            python_rpm ="python2.4-2.4-1pydotorg.i586.rpm"
     997            if os.access("./%s" % python_rpm, os.R_OK):
     998                copy_file("./%s" % python_rpm, "%s/%s" % (softdir, python_rpm))
     999
    9721000            for a in attrs:
    9731001                if a['attribute'] in configs:
Note: See TracChangeset for help on using the changeset viewer.