instance.cfg.in 1.26 KB
Newer Older
1 2 3 4 5 6 7 8 9
[buildout]
parts =
  slapos-instance

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

[slapos-instance]
10 11
recipe = slapos.recipe.cmmi
# This url is useless
12
path = $${buildout:directory}
Jondy Zhao's avatar
Jondy Zhao committed
13 14 15 16
pre-configure =
  echo -e "#! /bin/bash\nmsiexec.exe /i `cygpath -w ${installer:location}/slapos-windows-all-in-one.exe` TARGETDIR=`cygpath -w $${buildout:directory}` /log `cygpath -w $${buildout:directory}/slapos-windows-installer.log` /quiet" > $${buildout:directory}/boot-installer
  chmod +x $${buildout:directory}/boot-installer
configure-command = $${buildout:directory}/boot-installer
Jondy Zhao's avatar
Jondy Zhao committed
17 18
pre-install =
  cp ${installer:cygroot}/slapos-windows-wrapper.bat $${buildout:directory}/
19 20
  cp ${installer:cygroot}/test-computer.key $${buildout:directory}/cygwin/computer.key
  cp ${installer:cygroot}/test-/computer.crt $${buildout:directory}/cygwin/computer.crt
Jondy Zhao's avatar
Jondy Zhao committed
21 22
  cp ${installer:cygroot}/.slapos/key $${buildout:directory}/cygwin/key
  cp ${installer:cygroot}/.slapos/certificate $${buildout:directory}/cygwin/certificate
23
make-binary = true
24 25
# The parameter "slaptester" is the password of slapos administrator
# passed to configure script
Jondy Zhao's avatar
Jondy Zhao committed
26
post-install =
27
  $${buildout:directory}/slapos-windows-wrapper.bat slapos-configure slaptester