Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/kimchi.conf.in | 3 +++
src/kimchi/config.py.in | 1 +
src/kimchid.in | 3 +++
3 files changed, 7 insertions(+)
diff --git a/src/kimchi.conf.in b/src/kimchi.conf.in
index 9f62ac0..cd141f5 100644
--- a/src/kimchi.conf.in
+++ b/src/kimchi.conf.in
@@ -33,6 +33,9 @@
# Max request body size in KB, default value is 4GB
#max_body_size = 4 * 1024 * 1024
+# Automatically create ISO pool on server start up
+#create_iso_pool = true
+
[logging]
# Log directory
#log_dir = @localstatedir@/log/kimchi
diff --git a/src/kimchi/config.py.in b/src/kimchi/config.py.in
index f2e1cac..610c380 100644
--- a/src/kimchi/config.py.in
+++ b/src/kimchi/config.py.in
@@ -295,6 +295,7 @@ def _get_config():
config.set("server", "ssl_key", "")
config.set("server", "environment", "production")
config.set("server", "federation", "off")
+ config.set("server", "create_iso_pool", "true")
config.set('server', 'max_body_size', '4*1024*1024')
config.add_section("authentication")
config.set("authentication", "method", "pam")
diff --git a/src/kimchid.in b/src/kimchid.in
index 57dc3c8..4ea7a42 100644
--- a/src/kimchid.in
+++ b/src/kimchid.in
@@ -47,6 +47,7 @@ def main(options):
cherrypy_port = config.config.get("server", "cherrypy_port")
runningEnv = config.config.get("server", "environment")
federation = config.config.get("server", "federation")
+ isopool = config.config.get("server", "create_iso_pool")
logDir = config.config.get("logging", "log_dir")
logLevel = config.config.get("logging", "log_level")
@@ -73,6 +74,8 @@ def main(options):
help="Register and discover Kimchi peers in the same "
"network using openSLP. Check README-federation
for"
" more details.")
+ parser.add_option('--create_iso_pool', default=isopool,
+ help="Automatically create ISO pool on server start
up.")
parser.add_option('--test', action='store_true',
help="Run server in mock model")
(options, args) = parser.parse_args()
--
2.1.0