@@ -5,37 +5,98 @@ VERSION="2"
55# Parameters
66ONBOOT="{ tmpl_var name= ' onboot' } "
77BOOTORDER="{ tmpl_var name= ' bootorder' } "
8+
9+ # VSwap requires RAM and SWAP, all other memory parameters are optional.
10+ <tmpl _if name =' physpages' >
11+ # RAM
12+ PHYSPAGES="{ tmpl_var name= ' physpages' } "
13+ </tmpl _if >
14+ <tmpl _if name =' swappages' >
15+ # SWAP
16+ SWAPPAGES="{ tmpl_var name= ' swappages' } "
17+ </tmpl _if >
18+
19+ <tmpl _if name =' kmemsize' >
820KMEMSIZE="{ tmpl_var name= ' kmemsize' } "
21+ </tmpl _if >
22+ <tmpl _if name =' lockedpages' >
923LOCKEDPAGES="{ tmpl_var name= ' lockedpages' } "
24+ </tmpl _if >
25+ <tmpl _if name =' privvmpages' >
1026PRIVVMPAGES="{ tmpl_var name= ' privvmpages' } "
27+ </tmpl _if >
28+ <tmpl _if name =' shmpages' >
1129SHMPAGES="{ tmpl_var name= ' shmpages' } "
12- NUMPROC=" { tmpl_var name= ' numproc ' } "
13- PHYSPAGES=" { tmpl_var name= ' physpages ' } "
30+ </ tmpl _if >
31+ < tmpl _if name =' vmguarpages ' >
1432VMGUARPAGES="{ tmpl_var name= ' vmguarpages' } "
33+ </tmpl _if >
34+ <tmpl _if name =' oomguarpages' >
1535OOMGUARPAGES="{ tmpl_var name= ' oomguarpages' } "
36+ </tmpl _if >
37+ # alternative meminfo: "pages:256000"
38+ MEMINFO="privvmpages:1"
39+
40+ <tmpl _if name =' vmguarpages' >
41+ NUMPROC="{ tmpl_var name= ' numproc' } "
42+ </tmpl _if >
43+ <tmpl _if name =' numtcpsock' >
1644NUMTCPSOCK="{ tmpl_var name= ' numtcpsock' } "
45+ </tmpl _if >
46+ <tmpl _if name =' numflock' >
1747NUMFLOCK="{ tmpl_var name= ' numflock' } "
48+ </tmpl _if >
49+ <tmpl _if name =' numpty' >
1850NUMPTY="{ tmpl_var name= ' numpty' } "
51+ </tmpl _if >
52+ <tmpl _if name =' numsiginfo' >
1953NUMSIGINFO="{ tmpl_var name= ' numsiginfo' } "
54+ </tmpl _if >
55+ <tmpl _if name =' tcpsndbuf' >
2056TCPSNDBUF="{ tmpl_var name= ' tcpsndbuf' } "
57+ </tmpl _if >
58+ <tmpl _if name =' tcprcvbuf' >
2159TCPRCVBUF="{ tmpl_var name= ' tcprcvbuf' } "
60+ </tmpl _if >
61+ <tmpl _if name =' othersockbuf' >
2262OTHERSOCKBUF="{ tmpl_var name= ' othersockbuf' } "
63+ </tmpl _if >
64+ <tmpl _if name =' dgramrcvbuf' >
2365DGRAMRCVBUF="{ tmpl_var name= ' dgramrcvbuf' } "
66+ </tmpl _if >
67+ <tmpl _if name =' numothersock' >
2468NUMOTHERSOCK="{ tmpl_var name= ' numothersock' } "
69+ </tmpl _if >
70+ <tmpl _if name =' dcachesize' >
2571DCACHESIZE="{ tmpl_var name= ' dcachesize' } "
72+ </tmpl _if >
73+ <tmpl _if name =' numfile' >
2674NUMFILE="{ tmpl_var name= ' numfile' } "
75+ </tmpl _if >
76+ <tmpl _if name =' avnumproc' >
2777AVNUMPROC="{ tmpl_var name= ' avnumproc' } "
78+ </tmpl _if >
79+ <tmpl _if name =' numiptent' >
2880NUMIPTENT="{ tmpl_var name= ' numiptent' } "
81+ </tmpl _if >
2982
3083DISKSPACE="{ tmpl_var name= ' diskspace' } "
3184DISKINODES="{ tmpl_var name= ' diskinodes' } "
3285QUOTAUGIDLIMIT="10000"
33- IOPRIO="{ tmpl_var name= ' io_priority' } "
3486QUOTATIME="0"
87+ <tmpl _if name =' io_priority' >
88+ IOPRIO="{ tmpl_var name= ' io_priority' } "
89+ </tmpl _if >
3590
91+ <tmpl _if name =' cpu_num' >
3692CPUS="{ tmpl_var name= ' cpu_num' } "
93+ </tmpl _if >
94+ <tmpl _if name =' cpu_units' >
3795CPUUNITS="{ tmpl_var name= ' cpu_units' } "
96+ </tmpl _if >
97+ <tmpl _if name =' cpu_limit' >
3898CPULIMIT="{ tmpl_var name= ' cpu_limit' } "
99+ </tmpl _if >
39100
40101VE_ROOT="/vz/root/$VEID"
41102VE_PRIVATE="/vz/private/$VEID"
@@ -44,11 +105,16 @@ ORIGIN_SAMPLE="vps.basic"
44105HOSTNAME="{ tmpl_var name= ' hostname' } "
45106IP_ADDRESS="{ tmpl_var name= ' ip_address' } "
46107NAMESERVER="{ tmpl_var name= ' nameserver' } "
47- # alternative meminfo: "pages:256000"
48- MEMINFO="privvmpages:1"
49- SWAPPAGES="{ tmpl_var name= ' swappages' } "
50108
109+ <tmpl _if name =' capability' >
51110CAPABILITY="{ tmpl_var name= ' capability' } "
111+ </tmpl _if >
112+ <tmpl _if name =' features' >
52113FEATURES="{ tmpl_var name= ' features' } "
114+ </tmpl _if >
115+ <tmpl _if name =' iptables' >
53116IPTABLES="{ tmpl_var name= ' iptables' } "
117+ </tmpl _if >
118+ <tmpl _if name =' custom' >
54119{ tmpl_var name= ' custom' }
120+ </tmpl _if >
0 commit comments