{{cookiecutter.project_slug}}/buildout.cfg
changeset 0 10812b2ba33a
child 9 8dba3d0aac03
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/{{cookiecutter.project_slug}}/buildout.cfg	Tue Jun 06 15:09:45 2017 +0200
@@ -0,0 +1,73 @@
+[buildout]
+extends = http://download.ztfy.org/pyams/pyams-{{ cookiecutter.pyams_release }}.cfg
+find-links = http://download.ztfy.org/eggs/
+
+socket-timeout = 3
+show-picked-versions = true
+newest = false
+
+allow-hosts =
+    *.python.org
+    *.sourceforge.net
+    github.com
+    bitbucket.org
+    download.ztfy.org
+
+versions = versions
+eggs-directory = {{ cookiecutter.eggs_directory }}
+
+parts =
+    zodb
+    zdaemon
+    {{ cookiecutter.project_slug }}
+
+[zodb]
+recipe = zc.recipe.egg:script
+eggs = ZEO
+
+[zdaemon]
+recipe = zc.recipe.egg:script
+eggs = zdaemon
+
+[{{ cookiecutter.project_slug }}]
+name = {{ cookiecutter.project_slug }}
+recipe = zc.zodbrecipes:server
+zeo.conf =
+  <zeo>
+    address {{ cookiecutter.zeo_server_port }}
+{%- if cookiecutter.zeo_monitor_port != 0 %}
+    monitor-address 8101
+{%- endif %}
+    read-only false
+    invalidation-queue-size 100
+    transaction-timeout 300
+    authentication-protocol digest
+    authentication-database $((INSTALL))/etc/auth.db
+    authentication-realm {{ cookiecutter.project_name }}
+  </zeo>
+  <blobstorage {{ cookiecutter.project_slug }}>
+    blob-dir $((INSTALL))/var/db/blobs
+    <filestorage {{ cookiecutter.project_slug }}>
+      path $((INSTALL))/var/db/Data.fs
+    </filestorage>
+  </blobstorage>
+  <eventlog>
+    level info
+    <logfile>
+      path {{ cookiecutter.logs_directory }}/{{ cookiecutter.project_slug }}-zeo.log
+    </logfile>
+  </eventlog>
+deployment = zeo
+pack = 10 4 * * * 0 {{ cookiecutter.zeo_pack_report }}
+shell-script = true
+
+[zeo]
+etc-directory = $((INSTALL))/etc
+crontab-directory = $((INSTALL))/etc/cron.d
+log-directory = {{ cookiecutter.logs_directory }}
+logrotate-directory = $((INSTALL))/etc/logrotate.d
+rc-directory = $((INSTALL))/etc/init.d
+run-directory = $((INSTALL))/var
+user = {{ cookiecutter.run_user }}
+
+[versions]