Changeset 9b3627e for fedd/federation/protogeni_access.py
- Timestamp:
- Mar 9, 2010 1:08:05 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 4e9719b
- Parents:
- c2c153b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/protogeni_access.py
rc2c153b r9b3627e 56 56 """ 57 57 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 58 68 # Make sure that the configuration is in place 59 69 if not config: … … 68 78 self.userconfcmd = config.get("access","userconfcmd") 69 79 self.userconfurl = config.get("access","userconfurl") 80 self.federation_software = config.get("access", "federation_software") 81 self.portal_software = config.get("access", "portal_software") 70 82 self.ssh_port = config.get("access","ssh_port") or "22" 71 83 self.sshd = config.get("access","sshd") … … 77 89 self.staging_host = config.get("access", "staging_host") \ 78 90 or "ops.emulab.net" 91 92 self.federation_software = software_list(self.federation_software) 93 self.portal_software = software_list(self.portal_software) 79 94 80 95 self.renewal_interval = config.get("access", "renewal") or (3 * 60 * 60) … … 970 985 get_url(s, certfile, softdir) 971 986 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 972 1000 for a in attrs: 973 1001 if a['attribute'] in configs:
Note: See TracChangeset
for help on using the changeset viewer.