From 3f4134fff04c828583eddd5d1f522b186dbc1fa3 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 17 Mar 2011 02:58:55 +0000
Subject: [PATCH] Introduce a instance template for SMB which aims to provide
 same configuration as tiolive provides today.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44375 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 slapos/smb.cfg      | 59 +++++++++++++++++++++++++++++++++++++++++++++
 slapos/software.cfg | 11 +++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 slapos/smb.cfg

diff --git a/slapos/smb.cfg b/slapos/smb.cfg
new file mode 100644
index 0000000000..6ac02291e9
--- /dev/null
+++ b/slapos/smb.cfg
@@ -0,0 +1,59 @@
+# Default Configurator for SMB (Small and Medium Business) 
+# Former TioLive Configuration.
+[buildout]
+parts =
+  instance
+
+eggs-directory = ${buildout:eggs-directory}
+develop-eggs-directory = ${buildout:develop-eggs-directory}
+
+[instance]
+recipe = ${instance-recipe:name}
+haproxy_binary = ${haproxy:location}/sbin/haproxy
+httpd_binary = ${apache:location}/bin/httpd
+kumo_gateway_binary = ${kumo:location}/bin/kumo-gateway
+kumo_manager_binary = ${kumo:location}/bin/kumo-manager
+kumo_server_binary = ${kumo:location}/bin/kumo-server
+memcached_binary = ${memcached:location}/bin/memcached
+mysql_binary = ${mariadb:location}/bin/mysql
+mysql_install_binary = ${mariadb:location}/bin/mysql_install_db
+mysql_upgrade_binary = ${mariadb:location}/bin/mysql_upgrade
+mysqld_binary = ${mariadb:location}/libexec/mysqld
+openssl_binary = ${openssl:location}/bin/openssl
+runUnitTest_binary = ${buildout:bin-directory}/runUnitTest
+runzeo_binary = ${buildout:bin-directory}/runzeo
+runzope_binary = ${buildout:bin-directory}/runzope
+zabbix_agent_binary = ${zabbix-agent:location}/sbin/zabbix_agent
+
+# Expose TIDStorage location
+# Note: Some day in future TIDStorage might become real distribution
+# with controllable entry points and scripts, so such hack will not be
+# needed anymore
+tidstorage_product_location = ${products-tidstorage:location}/TIDStorage
+
+# cloudooo specific configuration
+ooo_binary_path = ${libreoffice-bin:location}/program
+ooo_paster = ${buildout:bin-directory}/cloudooo_paster
+ooo_uno_path = ${libreoffice-bin:location}/basis-link/program
+
+link_binary_list =
+  ${mariadb:location}/bin/mysql
+  ${mariadb:location}/bin/mysqldump
+  ${tesseract:location}/bin/tesseract
+  ${w3m:location}/bin/w3m
+  ${xpdf:location}/bin/pdfinfo
+  ${xpdf:location}/bin/pdftotext
+
+# XXX: products won't be needed as soon as all ERP5 (and products-deps)
+# products will be eggified so then it will be possible to use them thanks to
+# availability in software's eggs
+products = ${products:list}
+environment =
+  LD_LIBRARY_PATH = ${file:location}/lib:${zlib:location}/lib:${freetype:location}/lib:${libXext:location}/lib:${libXau:location}/lib:${libX11:location}/lib
+
+bt5_list = 
+  erp5_core_proxy_field_legacy 
+  erp5_full_text_myisam_catalog 
+  erp5_base erp5_workflow 
+  erp5_configurator 
+  erp5_configurator_standard
diff --git a/slapos/software.cfg b/slapos/software.cfg
index 5e9ec7593d..0452a97947 100644
--- a/slapos/software.cfg
+++ b/slapos/software.cfg
@@ -95,6 +95,8 @@ parts =
 
 # Create instance template
   template
+  smb-template
+
 
 [instance-recipe]
 # Note: In case if specific instantiation recipe is used this is the place to
@@ -115,12 +117,21 @@ version = 2
 section = python2.7
 
 [template]
+# Default template for erp5 instance.
 recipe = slapos.recipe.template
 url = https://svn.erp5.org/repos/public/erp5/trunk/software_release/erp5/instance.cfg
 md5sum = 03e14d125ea999f0387145a17ee028b5
 output = ${buildout:directory}/template.cfg
 mode = 0644
 
+[smb-template]
+# Template for SMB Configurator
+recipe = slapos.recipe.template
+url = https://svn.erp5.org/repos/public/erp5/trunk/software_release/erp5/smb.cfg
+md5sum = 8c3acb73620bbe67b619195689355036
+output = ${buildout:directory}/smb-template.cfg
+mode = 0644
+
 [itools]
 pkgname = itools-0.50.8
 location = ${buildout:parts-directory}/${:_buildout_section_name_}
-- 
2.30.9