SettingsForm(Legacy): Add activation script setting

refs #13049
This commit is contained in:
Markus Frosch 2016-11-04 16:36:54 +01:00
parent 7fc0da6e21
commit 37f3d1a3e8
2 changed files with 11 additions and 0 deletions

View File

@ -130,6 +130,16 @@ class SettingsForm extends QuickForm
), ),
'value' => $settings->getStoredValue('deployment_path_v1') 'value' => $settings->getStoredValue('deployment_path_v1')
)); ));
$this->addElement('text', 'activation_script_v1', array(
'label' => $this->translate('Activation Tool'),
'description' => $this->translate(
'Script or tool to call when activating a new configuration stage.'
. ' (e.g. sudo /usr/local/bin/icinga-director-activate)'
. ' (name of the stage will be the argument for the script)'
),
'value' => $settings->getStoredValue('activation_script_v1')
));
} }
protected function eventuallyConfiguredEnum($name, $enum) protected function eventuallyConfiguredEnum($name, $enum)

View File

@ -20,6 +20,7 @@ class Settings
'enable_audit_log' => 'n', 'enable_audit_log' => 'n',
'deployment_mode_v1' => 'active-passive', 'deployment_mode_v1' => 'active-passive',
'deployment_path_v1' => null, 'deployment_path_v1' => null,
'activation_script_v1' => null,
// 'experimental_features' => null, // 'allow' // 'experimental_features' => null, // 'allow'
// 'master_zone' => null, // 'master_zone' => null,
); );