mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
475c84de1e
commit
6b10cdc3f7
@ -64,6 +64,17 @@ class IcingaHostForm extends DirectorObjectForm
|
||||
'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') {
|
||||
$this->addBoolean('master_should_connect', array(
|
||||
'label' => $this->translate('Establish connection'),
|
||||
@ -106,6 +117,7 @@ class IcingaHostForm extends DirectorObjectForm
|
||||
'master_should_connect',
|
||||
'accept_config',
|
||||
'command_endpoint_id',
|
||||
'api_key',
|
||||
);
|
||||
$this->addDisplayGroup($elements, 'clustering', array(
|
||||
'decorators' => array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user