Changeset 2972 for trunk/packages
- Timestamp:
- Jan 31, 2010, 6:50:32 PM (15 years ago)
- Location:
- trunk/packages/invirt-xen-config
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-xen-config
-
Property
svn:mergeinfo
set to
False
/package_branches/invirt-xen-config/hvirt merged eligible
-
Property
svn:mergeinfo
set to
False
-
trunk/packages/invirt-xen-config/debian/changelog
-
Property
svn:mergeinfo
set to
False
/package_branches/invirt-xen-config/hvirt/debian/changelog merged eligible
r2935 r2972 1 invirt-xen-config (0.0.29) unstable; urgency=low 2 3 * Merged in r2821,2824,2827 from hvirt branch. 4 5 -- Greg Brockman <gdb@mit.edu> Sun, 31 Jan 2010 18:44:53 -0500 6 1 7 invirt-xen-config (0.0.28) unstable; urgency=low 2 8 -
Property
svn:mergeinfo
set to
False
-
trunk/packages/invirt-xen-config/debian/transform_xend-config.sxp.invirt.mako
r1786 r2972 4 4 from invirt.config import structs as cfg 5 5 import os 6 hostname = os.uname()[1].split('.')[0] 6 fqdn = os.uname()[1] 7 internal_ip = None 8 # This hack is necessary because cfg.hosts is an array rather than a dict. 9 for host in cfg.hosts: 10 if host.hostname == fqdn: 11 internal_ip = host.internal_ip 12 break 13 14 class xend_template_exception(Exception): pass 15 if internal_ip is None: 16 raise xend_template_exception('Could not find an internal IP in the configuration for host %s' % fqdn) 7 17 %> 8 18 EOF 9 19 10 s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${ hostname}-internal')/m or die;20 s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${internal_ip}')/m or die; 11 21 s/^\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die; 12 22 s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 1536)/m or die;
Note: See TracChangeset
for help on using the changeset viewer.