[Beowulf] automount on high ports

Carsten Aulbert carsten.aulbert at aei.mpg.de
Fri Jul 4 09:53:36 PDT 2008


Hi Tim,

Tim Cutts wrote:
>
>> trivial with pdsh
>>
>>     pdsh apt-get install package
>

Well with dsh it's the same, but "our" way ensures that the nodes will
have the exactly same set-up after a reinstallation ;)

> DEBIAN_FRONTEND=noninteractive \
>    /usr/bin/aptitude -R -y \
>         -o Dpkg::Options::="--force-confdef" \
>         -o Dpkg::Options::="--force-confold" \
>       install "$@"
> 
> This forces aptitude not to ask you what to do with the configuration
> files, if they've been locally modified, but also forces it to be
> conservative, always use your existing configuration file, if it's
> already present.  Otherwise it configures the package defaults.  Combine
> this little script with cfengine, dsh or whatever, and you have a winner.
> 

Brutally you could also use "yes yes" ;)


> You can even use it to remove things, because aptitude install accepts
> suffixes to tell it to do other things.  For example, say you wanted to
> replaced lprng with cups, you can do that in one fell swoop with:
> 
> aptitude install lprng- cupsys
> 
> (this is another reason I switched from apt-get to aptitude, although
> I'd caution against using aptitude like this in sarge - the version in
> etch and later is fine, but the old sarge one can bite occasionally)

yes, that's also my reason why I prefer aptitude over apt

For completeness:
http://www.informatik.uni-koeln.de/fai/

Cheers

Carsten



More information about the Beowulf mailing list