{ "info": { "author": "Six Feet Up, Inc.", "author_email": "info@sixfeetup.com", "bugtrack_url": null, "classifiers": [ "Framework :: Buildout", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "collective.recipe.zope2cluster\n==============================\n\nNOTE: This recipe is no longer needed as of zc.buildout 1.4.\n\nUsing zc.buildout to do the same thing\n======================================\n\nAs of zc.buildout 1.4 you can create macros out of sections. This means that\nyou do not need this recipe anymore.\n\nThe following::\n\n [instance2]\n recipe = collective.recipe.zope2cluster\n instance-clone = instance\n http-address = 8081\n\nWould become::\n\n [instance2]\n <= instance\n http-address = 8081\n\nHere is a complete example::\n\n [buildout]\n parts =\n instance\n instance2\n \n extends = http://dist.plone.org/release/3.3/versions.cfg\n versions = versions\n \n [versions]\n zc.buildout = 1.4.1\n \n [zope2]\n recipe = plone.recipe.zope2install\n url = ${versions:zope2-url}\n \n [instance]\n recipe = plone.recipe.zope2instance\n user = admin:admin\n zope2-location = ${zope2:location}\n http-address = 8080\n \n [instance2]\n <= instance\n http-address = 8081\n\nUsing this recipe\n=================\n\nThis recipe aims to make it easier to set up a cluster of zope clients.\nThe zope2cluster recipe allows us to point to an existing \nplone.recipe.zope2instance part and copy it's options. Any options we define\nin the zope2cluster part override the original instance's options.\n\nExample::\n\n [instance]\n recipe = plone.recipe.zope2instance\n user = admin:admin\n http-address = 8080\n \n [instance2]\n recipe = collective.recipe.zope2cluster\n instance-clone = instance\n http-address = 8081\n\nOur instance2 part ends up being an exact copy of instance but changes the\nhttp-address to 8081.\n\nDetailed Documentation\n**********************\n\nSupported options\n=================\n\nThe recipe supports the following options:\n\ninstance-clone\n The name of the part that you want to 'clone'. Typically instance.\n\nExample usage\n=============\n\nWe'll start by creating a buildout that uses the recipe::\n\n >>> write('buildout.cfg',\n ... \"\"\"\n ... [buildout]\n ... parts = instance instance2\n ... index = http://pypi.python.org/simple\n ... \n ... [instance]\n ... recipe = plone.recipe.zope2instance\n ... zope2-location = %(zope2_location)s\n ... user = admin:admin\n ... ip-address = 192.168.0.1\n ... http-address = 8080\n ... effective-user = zope\n ... event-log-level = CRITICAL\n ... \n ... [instance2]\n ... recipe = collective.recipe.zope2cluster\n ... instance-clone = instance\n ... ip-address = 192.168.0.2\n ... http-address = 8081\n ... event-log-level = WARN\n ... \"\"\" % globals())\n\nRunning the buildout gives us::\n\n >>> print 'start', system(buildout)\n start...\n Installing instance2.\n ...\n\nFirst let's check to see that the original instance has the correct options::\n\n >>> instance = os.path.join(sample_buildout, 'parts', 'instance')\n >>> zc = open(os.path.join(instance, 'etc', 'zope.conf')).read()\n >>> print zc\n instancehome /sample-buildout/parts/instance\n ...\n effective-user zope\n ip-address 192.168.0.1\n ...\n \n level CRITICAL\n ...\n \n ...\n \n ...\n address 8080\n ...\n \n ...\n\nNow let's check our instance2 part to see if it is setup correctly::\n\n >>> instance = os.path.join(sample_buildout, 'parts', 'instance2')\n >>> zc = open(os.path.join(instance, 'etc', 'zope.conf')).read()\n >>> print zc\n instancehome /sample-buildout/parts/instance2\n ...\n effective-user zope\n ip-address 192.168.0.2\n ...\n \n level WARN\n ...\n \n ...\n \n ...\n address 8081\n ...\n \n ...\n\nContributors\n************\n\nClayton Parker [claytron], Author\n\nChange history\n**************\n\n1.1 (2009-09-04)\n================\n\n- No new code. Documentation update about zc.buildout 1.4.1\n [claytron]\n\n1.0 (2008-07-28)\n================\n\n- Implemented instance cloning code\n [claytron]\n\n- Implemented tests\n [claytron]\n\n- Created recipe with ZopeSkel\n [claytron]\n\nDownload\n********", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://sixfeetup.com", "keywords": "zope plone buildout recipe", "license": "ZPL", "maintainer": null, "maintainer_email": null, "name": "collective.recipe.zope2cluster", "package_url": "https://pypi.org/project/collective.recipe.zope2cluster/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.recipe.zope2cluster/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://sixfeetup.com" }, "release_url": "https://pypi.org/project/collective.recipe.zope2cluster/1.1/", "requires_dist": null, "requires_python": null, "summary": "A simple recipe to create a zope cluster", "version": "1.1" }, "last_serial": 788162, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "49784142fe91aaa73bb90f61abe80e4d", "sha256": "b811a454ba78dd74f986240156de60e38cfa47916d73bf6e38dc32c2c18ddc17" }, "downloads": -1, "filename": "collective.recipe.zope2cluster-1.0.tar.gz", "has_sig": false, "md5_digest": "49784142fe91aaa73bb90f61abe80e4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5570, "upload_time": "2008-07-29T04:54:24", "url": "https://files.pythonhosted.org/packages/96/e3/1160775fea4f1cbf2ff0934d7fdbc4963cbbc647792fdecfbb2069fac43d/collective.recipe.zope2cluster-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "64eaa5cba6236e8d00235d0b34f69036", "sha256": "6777a4267ecc27acf669cd7f3a7eae08afea34817c3e3ba674399cbdff1f44b3" }, "downloads": -1, "filename": "collective.recipe.zope2cluster-1.1.tar.gz", "has_sig": false, "md5_digest": "64eaa5cba6236e8d00235d0b34f69036", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2009-09-04T20:20:45", "url": "https://files.pythonhosted.org/packages/b4/80/31c16d3fc993a689fe11a498bd81117e709d02a5b4ddd85fc02a0e3b136f/collective.recipe.zope2cluster-1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64eaa5cba6236e8d00235d0b34f69036", "sha256": "6777a4267ecc27acf669cd7f3a7eae08afea34817c3e3ba674399cbdff1f44b3" }, "downloads": -1, "filename": "collective.recipe.zope2cluster-1.1.tar.gz", "has_sig": false, "md5_digest": "64eaa5cba6236e8d00235d0b34f69036", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6026, "upload_time": "2009-09-04T20:20:45", "url": "https://files.pythonhosted.org/packages/b4/80/31c16d3fc993a689fe11a498bd81117e709d02a5b4ddd85fc02a0e3b136f/collective.recipe.zope2cluster-1.1.tar.gz" } ] }