Externalise makebuildserver config variables

This commit is contained in:
Daniel Martí 2013-06-06 11:33:44 +02:00
parent 8a236ea1c8
commit ceb4b20ede
3 changed files with 18 additions and 17 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
config.py
makebs.config.py
*~
*.pyc
buildserver.box

16
makebs.config.sample.py Normal file
View File

@ -0,0 +1,16 @@
# You will need to alter these before running makebuildserver.py
# Name of the base box to use...
basebox = "raring32"
# Location where raring32.box can be found, if you don't already have
# it. Could be set to https://f-droid.org/raring32.box if you like...
baseboxurl = "/shares/software/OS and Boot/raring32.box"
memory = 3584
# Debian package proxy server - set this to None unless you have one...
aptproxy = "http://192.168.0.19:8000"
# Set to True if your base box is 64 bit...
arch64 = False

View File

@ -5,23 +5,7 @@ import sys
import subprocess
import time
# Settings, which need to be moved elsewhere ultimately. You will need
# to alter these before running.
# Name of the base box to use...
basebox = "raring32"
# Location where raring32.box can be found, if you don't already have
# it. Could be set to https://f-droid.org/raring32.box if you like...
baseboxurl = "/shares/software/OS and Boot/raring32.box"
memory = 3584
# Debian package proxy server - set this to None unless you have one...
aptproxy = "http://192.168.0.19:8000"
# Set to True if your base box is 64 bit...
arch64 = False
# End of settings.
execfile('makebs.config.py', globals())
def vagrant(params, cwd=None, printout=False):
"""Run vagrant.