SettingsForm(Legacy): Add configuration for a deployment path

refs #13049
This commit is contained in:
Markus Frosch 2016-11-04 14:10:50 +01:00
parent f67b71a353
commit 79541be050
2 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -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,
);