Skip to content

Commit

Permalink
SettingsForm(Legacy): Add configuration for a deployment path
Browse files Browse the repository at this point in the history
refs #13049
  • Loading branch information
lazyfrosch committed Nov 4, 2016
1 parent f67b71a commit 79541be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/forms/SettingsForm.php
Expand Up @@ -121,6 +121,15 @@ public function setup()
'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)
Expand Down
1 change: 1 addition & 0 deletions library/Director/Settings.php
Expand Up @@ -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,
);
Expand Down

0 comments on commit 79541be

Please sign in to comment.