[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [ITR] templates://dtc-xen/templates



Christian Perrier wrote:
> Quoting Justin B Rye (jbr@edlug.org.uk):
>> Is this version of dtc-xen/templates still up for review?
> 
> Well, yes. The maintainer introduced many templates and most of them
> need a very solid review (just like the dtc templates were needing).
> 
> Of course, what I usually don't check is whether the tempaltes are
> used or not.

They're all referenced by db_get calls in the postinst... but the
one for dtc-xen/conf_info_finish_setup doesn't seem to achieve
anything.  Assuming that template will be removed from a future
version, here's a diff that tries to improve the rest.

Caveat: I can't guarantee I fully understand how dtc-xen behaves.

--- templates~	2007-04-06 09:02:03.000000000 +0100
+++ templates	2007-04-06 09:33:42.000000000 +0100
@@ -8,17 +8,16 @@
 Type: string
 Default: dtc-xen
 _Description: SOAP server login:
- dtc-xen will bind a SOAP python server on which a dtc panel can connect to
- in order to start, stop create and destroy a VPS. What login do you want
- to create on that server.
+ dtc-xen will bind a SOAP python server (to which a dtc panel can connect, in
+ order to start, stop, create and destroy a VPS). What login do you want to
+ create on that server?
 
 Template: dtc-xen/conf_soap_pass
 Type: password
 Default: dtc-xen
 _Description: SOAP server pass:
- dtc-xen will generate a password (in a .htpasswd file) that will hold the
- password for the login you have just configured. What password do you want
- to have generated in it?
+ dtc-xen will generate a .htpasswd file for the login you have just
+ configured.  What should be the password?
 
 Template: dtc-xen/conf_soap_domain_name
 Type: string
@@ -31,47 +30,46 @@
 Type: string
 Default: 0101
 _Description: VPS Server node number:
- dtc-xen will use that number as a VPS Server number and will make your VPS
- numbering using xenXXXXYY with X being the server number (what it's are
- asking you at the moment) and Y being the VPS number itself (xenYY). Note
- that this node number has to be between 4 and 5 chars, and that it will
- create something like nodeXXXX.example.com that will be your server
- hostname (which you can later add in your DTC control panel).
+ dtc-xen will use this value to set up VPS numbering, using the node number
+ 'xenXXXXYY', where XXXX is the value it's asking for here and YY is the VPS
+ number itself (xenYY). This node number must be 4 or 5 characters long, and
+ will create something like nodeXXXX.example.com as your server hostname
+ (which you can later add in your DTC control panel).
 
 Template: dtc-xen/conf_debian_repository
 Type: string
 Default: ftp://ftp.us.debian.org/debian
-_Description: Debian repository for setting-up VPSes:
- dtc-xen will use that repository for creating VPSes, and will copy your
- /etc/apt/sources.list inside your VPS (so this will be used ONLY durring
+_Description: Debian repository for setting up VPSes:
+ dtc-xen will use this repository for creating VPSes, and will copy your
+ /etc/apt/sources.list inside your VPS (so this will be used ONLY during
  the debootstrap stage of the VPS creation).
 
 Template: dtc-xen/conf_netmask
 Type: string
 Default: 255.255.255.0
-_Description: Netmask to be setup in the VPSes:
- Please enter the Netmask to use when doing the VPS network customization
- when dtc-xen creates a VPS.
+_Description: Netmask to be set up in the VPSes:
+ Please enter the Netmask to use in the VPS network customization when dtc-xen
+ creates a VPS.
 
 Template: dtc-xen/conf_network
 Type: string
 Default: 192.168.60.0
-_Description: Network to be setup in the VPSes:
- Please enter the Network address to use when doing the VPS network
- customization when dtc-xen creates a VPS.
+_Description: Network address to be set up in the VPSes:
+ Please enter the Network address to use in the VPS network customization when
+ dtc-xen creates a VPS.
 
 Template: dtc-xen/conf_broadcast
 Type: string
 Default: 192.168.60.255
-_Description: Broadcast to be setup in the VPSes:
- Please enter the network broadcast address to use when doing the VPS
- network customization when dtc-xen creates a VPS.
+_Description: Broadcast address to be set up in the VPSes:
+ Please enter the network broadcast address to use in the VPS network
+ customization when dtc-xen creates a VPS.
 
 Template: dtc-xen/conf_gateway
 Type: string
 Default: 192.168.60.254
-_Description: Gateway to be setup in the VPSes:
- Please enter the network gateway address to use when doing the VPS network
+_Description: Gateway address to be setup in the VPSes:
+ Please enter the network gateway address to use in the VPS network
  customization when dtc-xen creates a VPS.
 
 Template: dtc-xen/conf_linux_kernel_name
@@ -80,18 +78,18 @@
 _Description: Xen Kernel release name:
  Enter here the kernel version number as it appears in the uname -a. A
  kernel domU with that name must be located in /boot (example:
- vmlinuz-2.6.16.27-xenU) and it's corresponding modules must be in
+ vmlinuz-2.6.16.27-xenU) and its corresponding modules must be in
  /lib/modules.
 
 Template: dtc-xen/conf_lvm_name
 Type: string
 Default: lvm1
-_Description: Volume group where to create VPS:
- dtc-xen creates physical partitions in a lvm volume group that you have to
- name here. This volume group has to be big enough to hold all the VMs you will
- setup later on this server. If you don't want to use lvm (because you don't
- care if loopback is slower), leave this as default and dtc-xen wont use it
- anyway.
+_Description: volume group to create VPS in:
+ dtc-xen creates physical partitions in an existing lvm volume group, which
+ you must name here. This volume group must be big enough to hold all the VMs
+ you will set up later on this server. If you don't want to use lvm (because
+ you don't care if loopback is slower), leave this set to its default and
+ dtc-xen won't use it anyway.
 
 Template: dtc-xen/conf_info_finish_setup
 Type: note
Template: dtc-xen/conf_soap_port
Type: string
Default: 8089
_Description: Server port:
 What port should it bind to? Default is 8089.

Template: dtc-xen/conf_soap_login
Type: string
Default: dtc-xen
_Description: SOAP server login:
 dtc-xen will bind a SOAP python server (to which a dtc panel can connect, in
 order to start, stop, create and destroy a VPS). What login do you want to
 create on that server?

Template: dtc-xen/conf_soap_pass
Type: password
Default: dtc-xen
_Description: SOAP server pass:
 dtc-xen will generate a .htpasswd file for the login you have just
 configured.  What should be the password?

Template: dtc-xen/conf_soap_domain_name
Type: string
Default: example.com
_Description: Server hostname:
 What will be the domain name for this dtc-xen server? This will be used as a
 part of the URL by the SOAP dtc panel client.

Template: dtc-xen/conf_node_number
Type: string
Default: 0101
_Description: VPS Server node number:
 dtc-xen will use this value number to set up VPS numbering, using the node
 number 'xenXXXXYY' where XXXX is the value it's asking for here and YY is the
 VPS number itself (xenYY). This node number must be 4 or 5 chars, and will
 create something like nodeXXXX.example.com as your server hostname (which 
 you can later add in your DTC control panel).

Template: dtc-xen/conf_debian_repository
Type: string
Default: ftp://ftp.us.debian.org/debian
_Description: Debian repository for setting up VPSes:
 dtc-xen will use this repository for creating VPSes, and will copy your
 /etc/apt/sources.list inside your VPS (so this will be used ONLY during
 the debootstrap stage of the VPS creation).

Template: dtc-xen/conf_netmask
Type: string
Default: 255.255.255.0
_Description: Netmask to be set up in the VPSes:
 Please enter the Netmask to use in the VPS network customization when dtc-xen
 creates a VPS.

Template: dtc-xen/conf_network
Type: string
Default: 192.168.60.0
_Description: Network address to be set up in the VPSes:
 Please enter the Network address to use in the VPS network customization when
 dtc-xen creates a VPS.

Template: dtc-xen/conf_broadcast
Type: string
Default: 192.168.60.255
_Description: Broadcast address to be set up in the VPSes:
 Please enter the network broadcast address to use in the VPS network
 customization when dtc-xen creates a VPS.

Template: dtc-xen/conf_gateway
Type: string
Default: 192.168.60.254
_Description: Gateway address to be setup in the VPSes:
 Please enter the network gateway address to use in the VPS network
 customization when dtc-xen creates a VPS.

Template: dtc-xen/conf_linux_kernel_name
Type: string
Default: 2.6.16.27-xenU
_Description: Xen Kernel release name:
 Enter here the kernel version number as it appears in the uname -a. A
 kernel domU with that name must be located in /boot (example:
 vmlinuz-2.6.16.27-xenU) and its corresponding modules must be in
 /lib/modules.

Template: dtc-xen/conf_lvm_name
Type: string
Default: lvm1
_Description: volume group to create VPS in:
 dtc-xen creates physical partitions in an existing lvm volume group, which
 you must name here. This volume group must be big enough to hold all the VMs
 you will set up later on this server. If you don't want to use lvm (because
 you don't care if loopback is slower), leave this set to its default and
 dtc-xen won't use it anyway.

Template: dtc-xen/conf_info_finish_setup
Type: note
_Description: How to finish the install
 To finish the installation, you need to launch
 /usr/sbin/dtc-xen_finish_install. This script will remove port
 forwarding from your sshd_config and add the grant of xm console
 to the group xenusers so your users can loggin to the physical
 console. It will then try to download the files needed to setup
 Gentoo and CentOS into your VMs. Note that the system is currently
 safe (nobody can connect to a physical console as xenXX, they will
 be rejected because the /etc/sudoers is not changed), but a basic
 user wont be able to log into his physical console using ssh.

Reply to: