]>
Commit | Line | Data |
---|---|---|
88d20d00 TP |
1 | # Copyright (C) 2000-2007 SWsoft. All rights reserved. |
2 | # | |
3 | # This program is free software; you can redistribute it and/or modify | |
4 | # it under the terms of the GNU General Public License as published by | |
5 | # the Free Software Foundation; either version 2 of the License, or | |
6 | # (at your option) any later version. | |
7 | # | |
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | # GNU General Public License for more details. | |
12 | # | |
13 | # You should have received a copy of the GNU General Public License | |
14 | # along with this program; if not, write to the Free Software | |
15 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
16 | # | |
17 | # This is a distribution configuration file template. | |
18 | # This configuration file is meant to run specific actions | |
19 | # depending on the Linux version the VE is running. | |
20 | # | |
21 | # After an action is initiated, it requests vzctl to read the configuration on the basis | |
22 | # of the DISTRIBUTION or (if not present) on the OSTEMPLATE variable in the VE | |
23 | # configuration file. In case an unknown distribution version has been found, | |
24 | # the default configuration file is used for this distribution. | |
25 | # If no configuration file was found, the default.conf file is used. | |
26 | # | |
27 | ||
28 | # This script is launched inside a VE on executing the following commands: | |
29 | # vzctl start VEID | |
30 | # vzctl set VEID --ipadd <ip> | |
31 | # | |
32 | # The script is used to configure the network settings | |
33 | # on the VE startup or on the IP address(es) assignment. | |
34 | # The parameters are passed to the corresponding environment variables. | |
35 | # Required parameters: | |
36 | # IP_ADDR - the IP address(es) to be added to the VE | |
37 | # (the space is used to separate several IP addresses) | |
38 | # Optional parameters: | |
39 | # VE_STATE - the state of the VE; can be either "starting" or "running" | |
40 | # IPDELALL - deletes all old interfaces | |
41 | # | |
42 | ADD_IP=pld-add_ip.sh | |
43 | ||
44 | # This script is launched inside a VE on executing the following commands: | |
45 | # vzctl set VEID --ipdel <ip> | |
46 | # vzctl set VEID --ipdel <all> | |
47 | # | |
48 | # The script is used to delete an existing IP address(es). | |
49 | # The parameters are passed to the corresponding environment variables. | |
50 | # Required parameters: | |
51 | # IP_ADDR - the IP addresses to be deleted from the VE | |
52 | # (the space is used to separate several IP addresses) | |
53 | # Optional parameters: | |
54 | # IPDELALL - deletes all existing IP addresses | |
55 | # | |
56 | DEL_IP=pld-del_ip.sh | |
57 | ||
58 | # This script is launched inside a VE on executing the following command: | |
59 | # vzctl set VEID --hostname <name> | |
60 | # | |
61 | # The script is used to configure the hostname of the VE. | |
62 | # The parameters are passed to the corresponding environment variables. | |
63 | # Required parameters: | |
64 | # HOSTNM - the hostname of the VE | |
65 | # | |
66 | SET_HOSTNAME=pld-set_hostname.sh | |
67 | ||
68 | # This script is launched inside a VE on executing the following command: | |
69 | # vzctl set VEID --searchdomain <domain> --nameserver <ip> | |
70 | # | |
71 | # The script is used to configure DNS parameters in the /etc/resolv.conf file. | |
72 | # The parameters are passed to the corresponding environment variables. | |
73 | # Optional parameters: | |
74 | # SEARCHDOMAIN- Sets a search domain(s) for the VE. Modifies the /etc/resolv.conf file. | |
75 | # NAMESERVER - Sets a name server(s) for the VE. Modifies the /etc/resolv.conf file. | |
76 | # | |
77 | SET_DNS=set_dns.sh | |
78 | ||
79 | # This script is launched inside a VE on executing the following command: | |
80 | # vzctl set VEID --userpasswd <user:passwd> | |
81 | # | |
82 | # The script is used to add a new user or change the current password. | |
83 | # The parameters are passed to the corresponding environment variables. | |
84 | # Required parameters: | |
85 | # USERPW - Sets a new password for the VE user. If the user does not exist, | |
86 | # the script creates a new user with the specified password. | |
87 | # | |
88 | SET_USERPASS=set_userpass.sh | |
89 | ||
90 | # This script is launched inside a VE on executing the following command: | |
91 | # vzctl set VEID --quotaugidlimit <num> | |
92 | # | |
93 | # The script is used to set up second level quota. | |
94 | # The parameters are passed to the corresponding environment variables. | |
95 | # Required parameters: | |
96 | # MINOR - the root device minor number | |
97 | # MAJOR - the root device major number | |
98 | SET_UGID_QUOTA=set_ugid_quota.sh | |
99 | ||
100 | # This script is launched on the Hardware Node after the VE creation: | |
101 | # vzctl create VEID | |
102 | # | |
103 | # The script is used to perform certain postcreate tasks. | |
104 | # The parameters are passed to the corresponding environment variables. | |
105 | # Required parameters: | |
106 | # VE_ROOT - the root path of the VE | |
107 | POST_CREATE=postcreate.sh |