[icinga-checkins] icinga.org: icingaweb2-module-director/next: SettingsForm(Legacy): Add configuration for a deployment path

git at icinga.org git at icinga.org
Fri Nov 4 14:10:54 CET 2016


Module: icingaweb2-module-director
Branch: next
Commit: 79541be0508efe035a1f94139867052e1da19e17
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=79541be0508efe035a1f94139867052e1da19e17

Author: Markus Frosch <markus.frosch at icinga.com>
Date:   Fri Nov  4 14:10:50 2016 +0100

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 55724df..ec555d9 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 f2e2d1c..2ed854d 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,
     );



More information about the icinga-checkins mailing list