mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
SelfServiceSettingsForm: allow global_zones...
...regardless of installation settings fixes #1399
This commit is contained in:
parent
1bff61eeb5
commit
a9f5f2140b
@ -40,6 +40,21 @@ class SelfServiceSettingsForm extends DirectorForm
|
|||||||
'value' => $settings->getStoredOrDefaultValue('self-service/transform_hostname')
|
'value' => $settings->getStoredOrDefaultValue('self-service/transform_hostname')
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$this->addElement('extensibleSet', 'global_zones', [
|
||||||
|
'label' => $this->translate('Global Zones'),
|
||||||
|
'description' => $this->translate(
|
||||||
|
'To ensure downloaded packages are build by the Icinga Team'
|
||||||
|
. ' and not compromised by third parties, you will be able'
|
||||||
|
. ' to provide an array of SHA1 hashes here. In case you have'
|
||||||
|
. ' defined any hashses, the module will not continue with'
|
||||||
|
. ' updating / installing the Agent in case the SHA1 hash of'
|
||||||
|
. ' the downloaded MSI package is not matching one of the'
|
||||||
|
. ' provided hashes of this setting'
|
||||||
|
),
|
||||||
|
'multiOptions' => $this->enumGlobalZones(),
|
||||||
|
'value' => $settings->getStoredOrDefaultValue('self-service/global_zones'),
|
||||||
|
]);
|
||||||
|
|
||||||
$this->addElement('select', 'download_type', [
|
$this->addElement('select', 'download_type', [
|
||||||
'label' => $this->translate('Installation Source'),
|
'label' => $this->translate('Installation Source'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
@ -147,21 +162,6 @@ class SelfServiceSettingsForm extends DirectorForm
|
|||||||
'value' => $hashes,
|
'value' => $hashes,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->addElement('extensibleSet', 'global_zones', [
|
|
||||||
'label' => $this->translate('Global Zones'),
|
|
||||||
'description' => $this->translate(
|
|
||||||
'To ensure downloaded packages are build by the Icinga Team'
|
|
||||||
. ' and not compromised by third parties, you will be able'
|
|
||||||
. ' to provide an array of SHA1 hashes here. In case you have'
|
|
||||||
. ' defined any hashses, the module will not continue with'
|
|
||||||
. ' updating / installing the Agent in case the SHA1 hash of'
|
|
||||||
. ' the downloaded MSI package is not matching one of the'
|
|
||||||
. ' provided hashes of this setting'
|
|
||||||
),
|
|
||||||
'multiOptions' => $this->enumGlobalZones(),
|
|
||||||
'value' => $settings->getStoredOrDefaultValue('self-service/global_zones'),
|
|
||||||
]);
|
|
||||||
|
|
||||||
$this->addElement('text', 'icinga_service_user', [
|
$this->addElement('text', 'icinga_service_user', [
|
||||||
'label' => $this->translate('Service User'),
|
'label' => $this->translate('Service User'),
|
||||||
'description' => $this->translate(
|
'description' => $this->translate(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user