[Mageia-dev] help wanted for building a buildnode-in-a-VM

Michael Scherer misc at zarb.org
Fri Mar 11 00:27:48 CET 2011


Le jeudi 10 mars 2011 à 21:52 +0100, Maarten Vanraes a écrit :
> Op donderdag 10 maart 2011 16:35:25 schreef Samuel Verschelde:
> > Le jeudi 10 mars 2011 12:17:11, nicolas vigier a écrit :
> > > On Thu, 10 Mar 2011, Maarten Vanraes wrote:
> > > > Op donderdag 10 maart 2011 00:22:36 schreef nicolas vigier:
> > > > > On Thu, 10 Mar 2011, Maarten Vanraes wrote:
> > > > > > Hi,
> > > > > > 
> > > > > > for the purpose of testing package building locally;
> > > > > > 
> > > > > >  - you're a careful packager and test out everything locally before
> > > > > >  submitting - you're a novice packager and want to practise
> > > > > > 
> > > > > > i would like to make a VM that acts like a buildnode, with the
> > > > > > following
> > > > > > 
> > > > > > requirements:
> > > > > >  - mageia system (not mandriva)
> > > > > >  - preferably headless
> > > > > >  - ssh on by default
> > > > > >  - building 32bit AND 64bit packages
> > > > > >  - using chroots to build and preferably having basesystem chroots
> > > > > >  on it. also
> > > > > > 
> > > > > > cleans up so buildrequires are properly tested, and lint checking
> > > > > > and what else a buildnode normally does.
> > > > > 
> > > > > This can be done using iurt.
> > > > 
> > > > so, how exactly does this work? iurt automagically build basesystem
> > > > chroots and chrootbuilds stuff? is there any task that is needed for
> > > > this kind of thing?
> > > 
> > > Yes. See iurt package. And iurt config file used on the cluster :
> > > http://svnweb.mageia.org/adm/puppet/modules/buildsystem/templates/iurt.ca
> > > ul dron.conf?revision=734&view=markup
> > > 
> > > > > >  - no signing step
> > > > > >  - still as small as possible so it can be put somewhere for
> > > > > >  downloading. - nice to have is possibly a sort of local submission
> > > > > >  tree so submitting
> > > > > > 
> > > > > > could also be practised.
> > > > > 
> > > > > You mean installing a full build system in a VM ?
> > > > > 
> > > > > You can try to do it using puppet, and the puppet modules on svn :
> > > > > http://svnweb.mageia.org/adm/
> > > > 
> > > > well, i donno, i don't know puppet and this is not meant to be used in
> > > > a controlled environment, but just built like this and people use it
> > > > locally. there is not really any need to remote control this machine.
> > > > just a one time setup.
> > > 
> > > The easiest way to setup a buildsystem is using puppet. Otherwise it
> > > will be more difficult.
> > 
> > Could someone from the sysadmins write (if it has not been done already) a
> > quick guide for puppet use, for example "how to deploy a buildnode using
> > puppet" ? I guess that would help Maarteen a lot :)
> > 
> > Samuel
> 
> It would help Maarten a lot :-)

- install puppet 
- take the svn of admin 
   svn co svn://svn.mageia.org/adm/ /etc/puppet/ 

and then something like :
puppetd --test --tags buildnode 

( not sure about this )

However, I do not recommend this, as I think what maarten want is to
have iurt, not the whole scheduling system and upload system of the
build system.
 
> one extra question, if i use puppet to install it, it will be exactly like the 
> current buildnode now?

Well our buildnode run on mandriva, your vm will likely be a mageia. So
that's already a difference.

> but is puppet then installed on it? because i don't want to give people the 
> impression that if they install this vm, that the mageia sysadmins would have 
> full control over their vm...

Well, if puppet is started and start to put our ssh keys as root, yes,
we will have access to the vm, provided that 1) we have network access
2) time to lose on this ( neither are credible possibility ).

-- 
Michael Scherer



More information about the Mageia-dev mailing list