From 79541be0508efe035a1f94139867052e1da19e17 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 4 Nov 2016 14:10:50 +0100 Subject: [PATCH] SettingsForm(Legacy): Add configuration for a deployment path refs #13049 --- application/forms/SettingsForm.php | 9 +++++++++ library/Director/Settings.php | 1 + 2 files changed, 10 insertions(+) diff --git a/application/forms/SettingsForm.php b/application/forms/SettingsForm.php index 55724df9..ec555d95 100644 --- a/application/forms/SettingsForm.php +++ b/application/forms/SettingsForm.php @@ -121,6 +121,15 @@ class SettingsForm extends QuickForm 'value' => $settings->getStoredValue('deployment_mode_v1') )); + $this->addElement('text', 'deployment_path_v1', array( + 'label' => $this->translate('Deployment Path'), + 'description' => $this->translate( + 'Local directory to deploy Icinga 1.x configuration.' + . ' Must be writable by icingaweb2.' + . ' (e.g. /etc/icinga/director)' + ), + 'value' => $settings->getStoredValue('deployment_path_v1') + )); } protected function eventuallyConfiguredEnum($name, $enum) diff --git a/library/Director/Settings.php b/library/Director/Settings.php index f2e2d1c5..2ed854d6 100644 --- a/library/Director/Settings.php +++ b/library/Director/Settings.php @@ -19,6 +19,7 @@ class Settings 'disable_all_jobs' => 'n', // 'y' 'enable_audit_log' => 'n', 'deployment_mode_v1' => 'active-passive', + 'deployment_path_v1' => null, // 'experimental_features' => null, // 'allow' // 'master_zone' => null, );