mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
parent
475c84de1e
commit
6b10cdc3f7
@ -64,6 +64,17 @@ class IcingaHostForm extends DirectorObjectForm
|
|||||||
'class' => 'autosubmit',
|
'class' => 'autosubmit',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
if ($this->isTemplate() && $this->object()->getShortTableName() === 'host') {
|
||||||
|
$this->addElement('text', 'api_key', array(
|
||||||
|
'label' => $this->translate('API key'),
|
||||||
|
'description' => $this->translate(
|
||||||
|
'This key (16-32 characters long) allows one to deploy new'
|
||||||
|
. ' hosts for this template through the REST API without'
|
||||||
|
. ' authentication.'
|
||||||
|
),
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->getSentOrResolvedObjectValue('has_agent') === 'y') {
|
if ($this->getSentOrResolvedObjectValue('has_agent') === 'y') {
|
||||||
$this->addBoolean('master_should_connect', array(
|
$this->addBoolean('master_should_connect', array(
|
||||||
'label' => $this->translate('Establish connection'),
|
'label' => $this->translate('Establish connection'),
|
||||||
@ -106,6 +117,7 @@ class IcingaHostForm extends DirectorObjectForm
|
|||||||
'master_should_connect',
|
'master_should_connect',
|
||||||
'accept_config',
|
'accept_config',
|
||||||
'command_endpoint_id',
|
'command_endpoint_id',
|
||||||
|
'api_key',
|
||||||
);
|
);
|
||||||
$this->addDisplayGroup($elements, 'clustering', array(
|
$this->addDisplayGroup($elements, 'clustering', array(
|
||||||
'decorators' => array(
|
'decorators' => array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user