X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/324594147fc6f7d02bfdd3896e2cd25e34092525..283fccff2b3b99bace5f8afb8d27fc6ead8e5de2:/templatize-xend-config?ds=sidebyside diff --git a/templatize-xend-config b/templatize-xend-config index 41fc9cc..11b04f9 100755 --- a/templatize-xend-config +++ b/templatize-xend-config @@ -8,7 +8,7 @@ internal_ip = None # This hack is necessary because cfg.hosts is an array rather than a dict. for host in cfg.hosts: if host.hostname == fqdn: - internal_ip = host.internal_ip + internal_ip = host.internal_ips[0] break class xend_template_exception(Exception): pass @@ -17,6 +17,7 @@ if internal_ip is None: %> EOF +s/^\#?\(xend-relocation-server [a-z]*\)/(xend-relocation-server yes)/m or die; s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${internal_ip}')/m or die; s/^\#?\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die; # s/^(\# )?\(network-script network-bridge\)/(network-script 'network-bridge')/m or die;