virtual server profile
On 23/12/2010 11:17, Arkadi Shishlov wrote:
On 12/21/10 16:58, Ed W wrote:
However, if that developer/administrator is available, then Gentoo is a
marvellous solution for quickly building few MB custom solution, or a 60MB
virtual server base installation, or whatever other customised environment you
Do you have such a setup for virtual server or, maybe, openvpz/vserver? ie.
profile/make.conf/install masks/whatever ready for public consumption you can share?
Sorry, missed your email
OK, I create
this has a file "parent" which contains:
Then simply create any overrides for completely global defaults and keywords
I then create various subdirectories:
vserver-host: this holds the generic host config
vserver-guest: this is the base for the various guest configs
(over-rides for all guests go here)
In the vserver-guest I create more directories per vserver type, eg:
The main thing to remember is that you need a "parent" file containing
".." in each and every directory or else you just failed to inherit from
the top level profile. However, after that just customise what you need
for each guest type!
Oh, further, in my host I have several package directories:
The "local" one is for the host and the others are mounted to the
appropriate class of guest. Note this isn't as granular as you desire,
eg the PHP package will normally have different use flags between apache
and nginx guests. However, portage simply uses or rebuilds the php
package as it finds it previously built. This is satisfactory for me.
Mysql is another example where most guests build with "-minimal", but
the servers build the full server. Again handled automatically with a
slight slowdown occasionally