Re: New configuration subsystem for LTSP

Stéphane Graber <stgraber-GeWIH/[email protected]> Thu, 30 Dec 2010 12:04:30 -0500
Newsgroups gmane.linux.terminal-server.devel
Message-ID <1293728670.25122.7.camel@localhost>
On Thu, 2010-12-30 at 18:33 +0200, Alkis Georgopoulos wrote:
> I implemented a draft for a bash/inetd based daemon that accepts some
> variables from the clients, sources whatever shell scripts are
> in /etc/ltsp/config.d, and returns the resulting "lts.conf" to the
> clients, see the usage function inside the code:
> http://ltsp.pastebin.com/3ESzWF4f
> 
> And we also started implementing a GUI editor for that new system:
> http://imagebin.org/index.php?mode=image&id=130256
> 
> Some benefits of the new system:
>  * More powerful, e.g. can set lts.conf vars when "client ram < 500"
>  * It's based on bash scripts, so the sysadmin or packages can drop
>    configuration code in /etc/ltsp/config.d
>  * If desired, it can also substitude ldminfod to save ram + a port.
> 
> If there's interest in it, I can have a working version in a few days.
> Of course I'm not going to commit anything if someone thinks it's not a
> good idea.
> 
> Happy new year to all,
> Alkis

Hi Alkis,

We really should talk :)
I implemented the exact same thing for ltsp-cluster over the last few
weeks.

It's the first working module of the ltsp-agent that supports multiple
configuration source including fallback and caching.
Code is currently in:         
 - lp:~ltsp-cluster-team/ltsp-cluster/ltsp-cluster-agent
 - lp:~ltsp-cluster-team/ltsp-cluster/ltsp-cluster-agent-thinclient
 - lp:~ltsp-cluster-team/ltsp-cluster/ltsp-cluster-agent-appserv

I've got support for tftp, http, https and the ltsp-cluster
control-center protocol. Memory usage is very low, only uses 20kB once
python is loaded (it usually is because of jetpipe or other scripts).
It has a plugin infrastructure is I believe extremely simple and offers
pretty much everything you might want.

I plan on having ldm and ltsp scripts changed over the next two weeks to
use the daemon when present. That should save us from any call to
getltscfg, instead using a unix socket or simply sourcing a file from
disk.

There'll also soon be more plugins to re-implement all of ltsp-cluster
on top of it. All development is made so it's completely optional but my
hope is to have it used by upstream LTSP eventually so LTSP-Cluster will
essentially be completely merged.

If you're interested in using it and helping make it ready for everyone
to use, let me know and I'll find some time to explain it to you.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl

_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
signature.asc (application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAABCgAGBQJNHLubAAoJEMY4l01keS1n64cQANVtpR8zT6gn8UKh1gD3ZenU
0wxfggipBKK85n34uyKRCVhJ5bPF46hPlpe9BUTyj/aQYadO9csEmzo1wKFvUcYb
LTK3Vpke3s1ZNT8P56VAUsUktxaoj74PYLNvjNlOB3ftPj7lIep11ptHocW8qQ8a
zFbWQ7yGKqjmfjsRX/jgd80b/nZo2gDDifF5pNtNfpDZ0GAhNFMMv1cglW/u5/Yn
JQclJTtQgw8EDfIaVYs8heUbru0RXRpkTDlwOwCVjfgypOgYIKSUuh9qItLOg5qX
KucTt2dPuUfywlfGtiKaMMcr23HbMDzdTAsAq0rhmRHcwi9b6FrVMYKOJs8I0Cgs
p+LNuEiZAGfQKddIiN40uiqV8J62fMIDacAg+WSaef31RpijGPocSewggVUoxOZS
JBKMfIfGeVTDLPjB6Mv1PmYLv/NWmdqrK9D0nShJIhZm9MVhpFSnlOmXu/hmY95h
/HOllvVKFZJFX33eb/8NvhoS54THnsSRGolXwu4IABHwNmgXGTRkZ4LiM2vG6/aZ
ExQNWgL+Z89ksEN9zwv3yXFefAjKW28HSdMmv5C8kvbdcNKWzsZjurZB8u2ndTG4
et+of/4orH5Xh5UW87aH7guzHvP3nNBbwOkCCIryebLS5hlDJoNiRWm8aDxwndrV
Y2R1jITjJvUVp6+1zeaT
=Iaql
-----END PGP SIGNATURE-----