Running Zope-2.7.0-b4 on Linux using an NFS shared instance home, I'd like to share one config file on multiple Zope servers. Can I use a %define or something to create a `/bin/hostname` variable inside of the zope.conf so the lock, log, etc. files are unique? --Karl
No, unfortunately ZConfig (the zope.conf file parser) does not provide access to the environment in this way via the config file. You might submit a feature request to the collector about this (unless there's one there already; this has been brought up before). On Tue, 2004-01-20 at 16:58, Karl Kopper wrote:
Running Zope-2.7.0-b4 on Linux using an NFS shared instance home, I'd like to share one config file on multiple Zope servers.
Can I use a %define or something to create a `/bin/hostname` variable inside of the zope.conf so the lock, log, etc. files are unique?
--Karl
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Chris McDonough wrote at 2004-1-20 17:29 -0500:
No, unfortunately ZConfig (the zope.conf file parser) does not provide access to the environment in this way via the config file. You might submit a feature request to the collector about this (unless there's one there already; this has been brought up before).
I posted a patch recently (within the last week) to "zope-dev@zope.org" that gives ZConfig access to the environment. -- Dieter
Cool! Thanks for letting me know. I guess I'll look for ~ Zope-2.7.1-b5 (?) --Karl ----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Chris McDonough" <chrism@plope.com> Cc: "Karl Kopper" <karl_kopper@hotmail.com>; <zope@zope.org> Sent: Wednesday, January 21, 2004 10:27 AM Subject: Re: [Zope] Shared zope.config file.
Chris McDonough wrote at 2004-1-20 17:29 -0500:
No, unfortunately ZConfig (the zope.conf file parser) does not provide access to the environment in this way via the config file. You might submit a feature request to the collector about this (unless there's one there already; this has been brought up before).
I posted a patch recently (within the last week) to "zope-dev@zope.org" that gives ZConfig access to the environment.
-- Dieter
Karl Kopper wrote at 2004-1-20 13:58 -0800:
Running Zope-2.7.0-b4 on Linux using an NFS shared instance home, I'd like to share one config file on multiple Zope servers.
Can I use a %define or something to create a `/bin/hostname` variable inside of the zope.conf so the lock, log, etc. files are unique?
When you look at the "zope-dev@zope.org" archive, you will find two extensions to ZConfig I made to address similar needs: * A new "%redefine" directive in configuration files. It allows us to have the following structure in our configuration files: XXX.conf: %include common_definitions.conf %redefine HOST abc ... %include common_XXX.conf In our case, the "common*.conf" configuration parts are maintained in CVS. Serveral instances need to make minor adaptions. * Access to the "environment". We need this to share configuration between ZConfig based application components and components that use other configuration mechanisms (e.g. shell scripts, such as the starter scripts for Zope/ZEO, ...) and to perform arithmetic with configuration values (add "port-base" to some fixed offset for ZEO). I hope but I am not sure whether the patches mentioned above will find their way into the "ZConfig" core. This may or may not be an issue for you. -- Dieter
participants (3)
-
Chris McDonough -
Dieter Maurer -
Karl Kopper