2016-10-31 09:34:26 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
|
|
|
use Exception;
|
|
|
|
|
|
|
|
class KickstartController extends DashboardController
|
|
|
|
{
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
$this->singleTab($this->view->title = $this->translate('Kickstart'));
|
2017-01-16 11:01:17 +01:00
|
|
|
$form = $this->view->form = $this->loadForm('kickstart');
|
|
|
|
try {
|
|
|
|
$form->setEndpoint($this->db()->getDeploymentEndpoint());
|
|
|
|
} catch (Exception $e) {
|
|
|
|
// Silently ignore DB errors
|
|
|
|
}
|
|
|
|
|
|
|
|
$form->handleRequest();
|
2016-10-31 09:34:26 +01:00
|
|
|
}
|
|
|
|
}
|