[Mageia-sysadm] [1010] add vhost for static.mageia.org

Michael Scherer misc at zarb.org
Fri Feb 11 20:30:31 CET 2011

 On Fri, 11 Feb 2011 19:33:53 +0100, Romain d'Alverny wrote:
> On Fri, Feb 11, 2011 at 19:15, Michael Scherer <misc at zarb.org> wrote:
>> On Fri, 11 Feb 2011 17:46:37 +0100 (CET), root at mageia.org wrote:
>>> +       # We should be able to define this path on each host.
>>> +       # Maybe using Facter ?
>>> +       $webdatadir = '/srv/web1-dd0/www'
>> This path is ugly and really do not help much to know what is there.
>> What is wrong with the /var/www we used everywhere ?
> It dates back to September IIRC.
> I don't know how it could be handled, but web1-dd0 is not a simple
> path in the filesystem, but the name of a (virtual) disk attached to
> the virtual host (Gandi hosting). If we add more disks over there,
> it's not to name these as file system items.

 This doesn't seems very flexible. I would expect to use lvm, like for 
 the rest, so if we
 add another disk, we do not need to play with directory like at the old 
 days on svn server
 at mandriva.

> But a better naming scheme is totally possible.
>>> +    # vhost to host static files used by web sites
>>> +    class static inherits base {
>>> +        $vhostdir = "$webdatadir/static.$domain"
>>> +       $svn_location = "svn://svn.$domain/svn/web/www/trunk/g/"
>> the same goes for this one ( yes, I already told it on irc , but I 
>> rest my
>> case, this is not gonna
>> help in the futur to have a readable system, much like the bunch of 
>> symlink
>> on mandriva cluster
>> created just by pure lazyness ).
> This 'g' here is only relevant to web developers that use it ('g' is
> historically used from mdv time for a short for 'global' static
> stuff). Now, yes, it can be renamed in plain 'static' but it requires
> several updates before here and there. We can add a README in there 
> to
> help for sysadmins if you want to.

 This is not for admins ( as we do not plan to touch to this ), but for 
 web developpers.
 The mandriva lore is not automatically passed from people to people, 
 and such non
 documented convention is what make maintainence slightly more difficult
 in the end. The least surprising stuff are, the least documentation you 
 to write ( and the least surprised people are, the
 sooner they are operational ).

 Of course, our own convention do not surprise us at all, and that's why 
 it is difficult
 to see when they are not very obvious to external people. Like 
 main/contribs, we all knew
 what it mean't, but the meaning was not obvious to external people.

 So yes, documentation would help.

 Michael Scherer

More information about the Mageia-sysadm mailing list