mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +02:00
KickstartForm: add hint for those re-running...
...Kickstart fixes #1116
This commit is contained in:
parent
1a08b90c7a
commit
5296f33bcc
@ -79,6 +79,18 @@ class KickstartForm extends DirectorForm
|
|||||||
|
|
||||||
$this->addResourceDisplayGroup();
|
$this->addResourceDisplayGroup();
|
||||||
|
|
||||||
|
if ($this->getDb()->hasDeploymentEndpoint()) {
|
||||||
|
$this->addHtmlHint(
|
||||||
|
$this->translate(
|
||||||
|
'Your configuration looks good. Still, you might want to re-run'
|
||||||
|
. ' this kickstart wizard to (re-)import modified or new manually'
|
||||||
|
. ' defined Command definitions or to get fresh new ITL commands'
|
||||||
|
. ' after an Icinga 2 Core upgrade.'
|
||||||
|
),
|
||||||
|
array('name' => 'HINT_kickstart')
|
||||||
|
// http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener
|
||||||
|
);
|
||||||
|
} else {
|
||||||
$this->addHtmlHint(
|
$this->addHtmlHint(
|
||||||
$this->translate(
|
$this->translate(
|
||||||
'Your installation of Icinga Director has not yet been prepared for'
|
'Your installation of Icinga Director has not yet been prepared for'
|
||||||
@ -88,6 +100,7 @@ class KickstartForm extends DirectorForm
|
|||||||
array('name' => 'HINT_kickstart')
|
array('name' => 'HINT_kickstart')
|
||||||
// http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener
|
// http://docs.icinga.com/icinga2/latest/doc/module/icinga2/chapter/object-types#objecttype-apilistener
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$this->addElement('text', 'endpoint', array(
|
$this->addElement('text', 'endpoint', array(
|
||||||
'label' => $this->translate('Endpoint Name'),
|
'label' => $this->translate('Endpoint Name'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user