From 1d828aeb7be93e1b6e37d5ef6e32ab8afebdcd18 Mon Sep 17 00:00:00 2001
From: Sebastien Robin <seb@nexedi.com>
Date: Thu, 5 May 2011 00:12:30 +0200
Subject: [PATCH] add profiles for testnode

---
 slapos/testnode-instance.cfg | 18 +++++++++++
 slapos/testnode-software.cfg | 60 ++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)
 create mode 100644 slapos/testnode-instance.cfg
 create mode 100644 slapos/testnode-software.cfg

diff --git a/slapos/testnode-instance.cfg b/slapos/testnode-instance.cfg
new file mode 100644
index 0000000000..3efbee4890
--- /dev/null
+++ b/slapos/testnode-instance.cfg
@@ -0,0 +1,18 @@
+[buildout]
+parts =
+  testnode
+
+eggs-directory = ${buildout:eggs-directory}
+develop-eggs-directory = ${buildout:develop-eggs-directory}
+
+[testnode]
+recipe = erp5.recipe.testnode
+
+buildbot_binary = ${buildout:bin-directory}/buildbot
+slapgrid_partition_binary = ${buildout:bin-directory}/slapgrid-cp
+slapgrid_software_binary = ${buildout:bin-directory}/slapgrid-sr
+slapproxy_binary = ${buildout:bin-directory}/slapproxy
+svn_binary = ${subversion:location}/bin/svn
+git_binary = ${git:location}/bin/git
+svnversion_binary = ${subversion:location}/bin/svnversion
+zip_binary = ${zip:location}/bin/zip
diff --git a/slapos/testnode-software.cfg b/slapos/testnode-software.cfg
new file mode 100644
index 0000000000..bddb0e2f6f
--- /dev/null
+++ b/slapos/testnode-software.cfg
@@ -0,0 +1,60 @@
+[buildout]
+extensions =
+  slapos.tool.rebootstrap
+  slapos.tool.networkcache
+  slapos.zcbworkarounds
+  mr.developer
+
+find-links = http://www.nexedi.org/static/packages/source/slapos.buildout/
+    http://dist.repoze.org
+    http://www.nexedi.org/static/packages/source/
+
+parts = eggs
+versions = versions
+extensions = slapos.tool.rebootstrap
+rebootstrap-section = python2.6
+extends =
+  profile/python-2.6.cfg
+  profile/subversion.cfg
+  profile/git.cfg
+  profile/lxml-python.cfg
+  profile/zip.cfg
+
+parts =
+  bootstrap
+  eggs
+  subversion
+  template
+  zip
+  git
+
+[bootstrap]
+recipe = zc.recipe.egg
+eggs = zc.buildout
+suffix =
+scripts =
+    buildout=bootstrap2.6
+arguments = sys.argv[1:] + ["bootstrap"]
+
+[rebootstrap]
+section = python2.6
+version = 1
+
+[versions]
+# Use SlapOS patched zc.buildout
+zc.buildout = 1.5.3-dev-SlapOS-001
+
+[eggs]
+recipe = zc.recipe.egg
+eggs =
+  ${lxml-python:egg}
+  erp5.recipe.testnode
+  slapos.tool.grid
+  slapos.tool.proxy
+
+[template]
+recipe = slapos.recipe.template
+url = ${:_profile_base_location_}/testnode-instance.cfg
+md5sum = 0b44b72c9e21d760f7e27a89e9d10187
+output = ${buildout:directory}/template.cfg
+mode = 0644
-- 
2.30.9