Sha256: b9678feb5fc45e8f7f0cafcc880f3b530b1fb040f062f29f6f67a5c7ef26cf66

Contents?: true

Size: 1.23 KB

Versions: 6

Compression:

Stored size: 1.23 KB

Contents

#
# Configuration file for the Xen instance {$hostname}, created
# by xen-tools {$xen_tools_version} on { scalar localtime }.
#

#
#  Kernel + memory size
#
{ if ( $kernel )
  {
    $OUT.= "kernel      = '$kernel'";
  }
}
{ if ( $initrd )
  {
    $OUT.= "ramdisk     = '$initrd'";
  }
}
memory      = '{$memory}'

#
#  Disk device(s).
#
root        = '/dev/{$device}1 ro'
{ if ( $noswap ) 
  {
        $OUT .= "disk        = [ '$image_vbd,$device" . "1,w' ]";
  }
  else
  {
        $OUT .= "disk        = [ '$image_vbd,$device" . "1,w', '$swap_vbd,$device" . "2,w' ]";
  }
}

#
#  Hostname
#
name        = '{$hostname}'

#
#  Networking
#
{ if ( $dhcp )
  {
    $OUT .= "dhcp        = 'dhcp'\n";

    # Setup the mac address, if present.
    my $m = '';
    if ( $mac )
    { 
      $m = "mac=$mac"
    }

    $OUT .= "vif         = [ '$m' ]";
  }    
  else
  {
    #
    # Setup the mac address, if present.
    #
    my $m = '';
    if ( $mac )
    { 
      $m = ",mac=$mac"
    }

    $OUT .= "vif         = [ 'ip=$ip1"; 
    $OUT .= "$m' ]";
  }
}

#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'


{ if ( $admins )
  {
    $OUT .= "xen_shell = '$admins'\n";
  }
}
extra = ' TERM=xterm xencons=tty console=tty1'

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
Empact-deprec-1.99.21 lib/deprec/templates/xen/xm.tmpl.erb
andyh-deprec-1.99.26 lib/deprec/templates/xen/xm.tmpl.erb
andyh-deprec-1.99.27 lib/deprec/templates/xen/xm.tmpl.erb
isaac-deprec-1.99.30 lib/deprec/templates/xen/xm.tmpl.erb
centostrano-0.1 lib/deprec/templates/xen/xm.tmpl.erb
centostrano-0.2 lib/deprec/templates/xen/xm.tmpl.erb