Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
fadec7dd
Commit
fadec7dd
authored
Oct 10, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not install ve-pve.auto.conf-sample
parent
de5d8ab1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
79 deletions
+3
-79
conffiles
debian/conffiles
+0
-1
Makefile
www/templates/Makefile
+3
-9
generate.pl
www/templates/generate.pl
+0
-69
No files found.
debian/conffiles
View file @
fadec7dd
...
...
@@ -5,5 +5,4 @@
/etc/cron.daily/pve
/etc/apache2/sites-available/pve.conf
/etc/apache2/sites-available/pve-redirect.conf
/etc/vz/conf/ve-pve.auto.conf-sample
/etc/vz/vznet.conf
www/templates/Makefile
View file @
fadec7dd
include
../../defines.mk
all
:
ve-pve.auto.conf-sample
ve-pve.auto.conf-sample
:
generate.pl
./generate.pl 256
>
$@
.tmp
echo
FIXME: vzcfgvalidate
$@
.tmp
mv
$@
.tmp
$@
all
:
.PHONY
:
install
install
:
ve-pve.auto.conf-sample
pve.conf pve-redirect.conf
install
:
pve.conf pve-redirect.conf
install
-d
${
DESTDIR
}
/etc/vz/conf
install
-m
0644 ve-pve.auto.conf-sample
${
DESTDIR
}
/etc/vz/conf
install
-d
${
DESTDIR
}
/etc/apache2/sites-available/
install
-m
0644 pve.conf pve-redirect.conf
${
DESTDIR
}
/etc/apache2/sites-available/
...
...
@@ -19,4 +13,4 @@ distclean: clean
.PHONY
:
clean
clean
:
rm
-rf
*
~
ve-pve.auto.conf-sample ve-pve.auto.conf-sample.tmp
rm
-rf
*
~
www/templates/generate.pl
deleted
100755 → 0
View file @
de5d8ab1
#!/usr/bin/perl -w
use
strict
;
use
POSIX
qw (LONG_MAX);
my
$max
=
LONG_MAX
;
my
$nolimit
=
"
\"
$max
:
$max
\"
";
my
$defaults
=
{
128
=>
{},
256
=>
{},
512
=>
{},
1024
=>
{},
2048
=>
{},
};
my
$mem
=
$ARGV
[
0
];
die
"
unknown memory size
"
if
!
defined
(
$defaults
->
{
$mem
});
print
"
# PVE default config for
${mem}
MB RAM
\n\n
";
print
"
ONBOOT=
\"
no
\"\n
";
print
"
\n
# Primary parameters
\n
";
print
"
NUMPROC=
\"
1024:1024
\"\n
";
print
"
NUMTCPSOCK=
$nolimit
\n
";
print
"
NUMOTHERSOCK=
$nolimit
\n
";
my
$vmguarpages
=
int
(
$mem
*
1024
/
4
);
print
"
VMGUARPAGES=
\"
$vmguarpages
:
$max
\"\n
";
print
"
\n
# Secondary parameters
\n
";
print
"
KMEMSIZE=
$nolimit
\n
";
my
$privmax
=
int
(
$vmguarpages
*
1.1
);
$privmax
=
$vmguarpages
+
12500
if
(
$privmax
-
$vmguarpages
)
>
12500
;
print
"
OOMGUARPAGES=
\"
$vmguarpages
:
$max
\"\n
";
print
"
PRIVVMPAGES=
\"
$vmguarpages
:
$privmax
\"\n
";
print
"
TCPSNDBUF=
$nolimit
\n
";
print
"
TCPRCVBUF=
$nolimit
\n
";
print
"
OTHERSOCKBUF=
$nolimit
\n
";
print
"
DGRAMRCVBUF=
$nolimit
\n
";
print
"
\n
# Auxiliary parameters
\n
";
print
"
NUMFILE=
$nolimit
\n
";
print
"
NUMFLOCK=
$nolimit
\n
";
print
"
NUMPTY=
\"
255:255
\"\n
";
print
"
NUMSIGINFO=
\"
1024:1024
\"\n
";
print
"
DCACHESIZE=
$nolimit
\n
";
print
"
LOCKEDPAGES=
$nolimit
\n
";
print
"
SHMPAGES=
$nolimit
\n
";
print
"
NUMIPTENT=
$nolimit
\n
";
print
"
PHYSPAGES=
\"
0:
$max
\"\n
";
print
"
\n
# Disk quota parameters
\n
";
print
"
DISKSPACE=
$nolimit
\n
";
print
"
DISKINODES=
$nolimit
\n
";
print
"
QUOTATIME=
\"
0
\"\n
";
print
"
QUOTAUGIDLIMIT=
\"
0
\"\n
";
print
"
\n
# CPU fair sheduler parameter
\n
";
print
"
CPUUNITS=
\"
1000
\"\n
";
print
"
CPUS=
\"
1
\"\n
";
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment