Changeset 2579
- Timestamp:
- Dec 5, 2009, 4:12:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dev/invirt-build-conf
r2569 r2579 4 4 5 5 This script generates the remctl ACL and configuration for each build 6 pocket defined in the configuration. 6 pocket defined in the configuration. It also updates the .k5login for 7 the git user that developers can push through. 7 8 """ 8 9 … … 27 28 28 29 def main(): 30 all_devs = set() 31 29 32 # Python could really use a file-like object that gets written to 30 33 # a temporary path and moved to its final resting place on … … 41 44 print >>acl_fd, '\n'.join(userToPrinc(a) for a in acl) 42 45 46 all_devs.update(set(userToPrinc(a) for a in acl)) 47 43 48 acl_path = os.path.join('/etc/remctl/acl/build-%s' % pocket) 44 49 … … 48 53 os.rename(conf_name, '/etc/remctl/conf.d/build') 49 54 55 k5login_fd, k5login_name = tempfile.mkstemp() 56 k5login = os.fdopen(k5login_fd, 'r+') 57 print >>k5login, '\n'.join(all_devs) 58 50 59 51 60 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.