source: trunk/packages/invirt-xen-config/debian/transform_xend-config.sxp.invirt.mako @ 2415

Last change on this file since 2415 was 1786, checked in by broder, 16 years ago

Instead of using whatever comes out of uname, explicitly strip the hostname down to the short form

  • Property svn:executable set to *
File size: 383 bytes
RevLine 
[1261]1#!/usr/bin/perl -0n
2print <<'EOF';
3<%
4from invirt.config import structs as cfg
5import os
[1786]6hostname = os.uname()[1].split('.')[0]
[1261]7%>
8EOF
9
10s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${hostname}-internal')/m or die;
11s/^\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die;
12s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 1536)/m or die;
13print;
Note: See TracBrowser for help on using the repository browser.