# Copyright (C) 2000-2007 SWsoft. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # This is a distribution configuration file template. # This configuration file is meant to run specific actions # depending on the Linux version the VE is running. # # After an action is initiated, it requests vzctl to read the configuration on the basis # of the DISTRIBUTION or (if not present) on the OSTEMPLATE variable in the VE # configuration file. In case an unknown distribution version has been found, # the default configuration file is used for this distribution. # If no configuration file was found, the default.conf file is used. # # This script is launched inside a VE on executing the following commands: # vzctl start VEID # vzctl set VEID --ipadd # # The script is used to configure the network settings # on the VE startup or on the IP address(es) assignment. # The parameters are passed to the corresponding environment variables. # Required parameters: # IP_ADDR - the IP address(es) to be added to the VE # (the space is used to separate several IP addresses) # Optional parameters: # VE_STATE - the state of the VE; can be either "starting" or "running" # IPDELALL - deletes all old interfaces # ADD_IP=pld-add_ip.sh # This script is launched inside a VE on executing the following commands: # vzctl set VEID --ipdel # vzctl set VEID --ipdel # # The script is used to delete an existing IP address(es). # The parameters are passed to the corresponding environment variables. # Required parameters: # IP_ADDR - the IP addresses to be deleted from the VE # (the space is used to separate several IP addresses) # Optional parameters: # IPDELALL - deletes all existing IP addresses # DEL_IP=pld-del_ip.sh # This script is launched inside a VE on executing the following command: # vzctl set VEID --hostname # # The script is used to configure the hostname of the VE. # The parameters are passed to the corresponding environment variables. # Required parameters: # HOSTNM - the hostname of the VE # SET_HOSTNAME=pld-set_hostname.sh # This script is launched inside a VE on executing the following command: # vzctl set VEID --searchdomain --nameserver # # The script is used to configure DNS parameters in the /etc/resolv.conf file. # The parameters are passed to the corresponding environment variables. # Optional parameters: # SEARCHDOMAIN- Sets a search domain(s) for the VE. Modifies the /etc/resolv.conf file. # NAMESERVER - Sets a name server(s) for the VE. Modifies the /etc/resolv.conf file. # SET_DNS=set_dns.sh # This script is launched inside a VE on executing the following command: # vzctl set VEID --userpasswd # # The script is used to add a new user or change the current password. # The parameters are passed to the corresponding environment variables. # Required parameters: # USERPW - Sets a new password for the VE user. If the user does not exist, # the script creates a new user with the specified password. # SET_USERPASS=set_userpass.sh # This script is launched inside a VE on executing the following command: # vzctl set VEID --quotaugidlimit # # The script is used to set up second level quota. # The parameters are passed to the corresponding environment variables. # Required parameters: # MINOR - the root device minor number # MAJOR - the root device major number SET_UGID_QUOTA=set_ugid_quota.sh # This script is launched on the Hardware Node after the VE creation: # vzctl create VEID # # The script is used to perform certain postcreate tasks. # The parameters are passed to the corresponding environment variables. # Required parameters: # VE_ROOT - the root path of the VE POST_CREATE=postcreate.sh