SettingsForm(Legacy): Add configuration for a deployment path
refs #13049
This commit is contained in:
parent
f67b71a353
commit
79541be050
|
@ -121,6 +121,15 @@ class SettingsForm extends QuickForm
|
||||||
'value' => $settings->getStoredValue('deployment_mode_v1')
|
'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)
|
protected function eventuallyConfiguredEnum($name, $enum)
|
||||||
|
|
|
@ -19,6 +19,7 @@ class Settings
|
||||||
'disable_all_jobs' => 'n', // 'y'
|
'disable_all_jobs' => 'n', // 'y'
|
||||||
'enable_audit_log' => 'n',
|
'enable_audit_log' => 'n',
|
||||||
'deployment_mode_v1' => 'active-passive',
|
'deployment_mode_v1' => 'active-passive',
|
||||||
|
'deployment_path_v1' => null,
|
||||||
// 'experimental_features' => null, // 'allow'
|
// 'experimental_features' => null, // 'allow'
|
||||||
// 'master_zone' => null,
|
// 'master_zone' => null,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue