From: Jason H. <jh...@ap...> - 2011-05-06 21:40:09
|
You can stick with just using config.xml, although it gets messy if your configuration gets much more complicated than the "if X else" case: <config> <file> <source> <plain group="!vertica-prod">limits.conf.default</plain> <plain group="vertica-prod">limits.conf.vertica-prod</plain> </source> </file> </config> Or you can switch to a script and express more complicated logic: <config> <file> <source> <script>limits.conf.script</script> </source> </file> </config> limits.conf.script: if @groups.include?('vertica-prod') @contents << File.read('limits.conf.vertica-prod') elsif @groups.include?('vertica-dev') @contents << File.read('limits.conf.vertica-dev') else @contents << File.read('limits.conf.default') end On May 6, 2011, at 1:26 PM, Kenneth Williams wrote: > Oddly enough this is the first time I've encountered this. I have a default limits.conf file that goes to all servers, but now I want to add one more for just a specific group. My config.xml looks like this; > > <config> > <file> > <source> > <plain>limits.conf.default</plain> > <plain group="vertica-prod">limits.conf.vertica-prod</plain> > </source> > </file> > </config> > > But this returns a 500 error on the client. > > Inconsistent 'plain' entries for /etc/security/limits.conf > 500 "Internal Server Error" > > Is there a way around this without having to specify each group for the "default" file? Thanks! > > -- > Kenneth Williams > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd_______________________________________________ > etch-users mailing list > etc...@li... > https://lists.sourceforge.net/lists/listinfo/etch-users |