aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam McLoughlin <hexxeh@hexxeh.net>2011-07-24 02:43:17 +0100
committerLiam McLoughlin <hexxeh@hexxeh.net>2011-07-24 02:43:17 +0100
commit449e4f5e6178dd60455c728234a78f65883faaca (patch)
treec8ec1d8c4377be85f81db5935d0dedd53a246e87
parentChanged code to be closer to Zend standard (diff)
downloadgentoaster-449e4f5e6178dd60455c728234a78f65883faaca.tar.gz
gentoaster-449e4f5e6178dd60455c728234a78f65883faaca.tar.bz2
gentoaster-449e4f5e6178dd60455c728234a78f65883faaca.zip
Use config file, defines to control settings, more Zend standards work
-rw-r--r--config.php29
-rw-r--r--web/config.php11
2 files changed, 40 insertions, 0 deletions
diff --git a/config.php b/config.php
new file mode 100644
index 0000000..760c1e2
--- /dev/null
+++ b/config.php
@@ -0,0 +1,29 @@
+<?php
+
+ // Gentoaster build daemon settings
+ // Licensed under GPL v3, see COPYING file
+
+ // Set the path that completed images should be stored at
+ define("CONFIGURATIONS_PATH", "/var/www/gentoaster/images");
+
+ // Set the path to the folder the Gentoaster tool is at
+ define("GENTOASTER_PATH", "/usr/share/gentoaster");
+
+ // Set the name of the image creation tool
+ define("BUILD_TOOL_NAME", "create_image.sh");
+
+ // Set the name of the testdrive wrapper
+ define("WRAP_TOOL_NAME", "wrap.sh");
+
+ // Set the externally accessible IP/host of this machine
+ define("EXTERNAL_HOST", "192.168.2.169");
+
+ // Set the port range that should be used for testdrives
+ define("LOW_PORT", 5900);
+ define("HIGH_PORT", 5999);
+
+ // Set the MySQL access details that should be used
+ define("MYSQL_HOSTNAME", "localhost");
+ define("MYSQL_USERNAME", "gentoaster");
+ define("MYSQL_PASSWORD", "");
+ define("MYSQL_DATABASE", "gentoaster"); \ No newline at end of file
diff --git a/web/config.php b/web/config.php
new file mode 100644
index 0000000..7e0058a
--- /dev/null
+++ b/web/config.php
@@ -0,0 +1,11 @@
+<?php
+
+ // Gentoaster web interface settings
+ // Licensed under GPL v3, see COPYING file
+
+ define("ZONETAB", "/usr/share/zoneinfo/zone.tab");
+
+ define("MYSQL_HOSTNAME", "localhost");
+ define("MYSQL_USERNAME", "gentoaster");
+ define("MYSQL_PASSWORD", "");
+ define("MYSQL_DATABASE", "gentoaster"); \ No newline at end of file