2015-04-24 14:27:22 +02:00
|
|
|
<?php
|
|
|
|
|
2015-12-10 13:03:28 +01:00
|
|
|
$this->providePermission('director/api', $this->translate('Allow to access the director API'));
|
2015-07-30 09:05:32 +02:00
|
|
|
$this->providePermission('director/hosts/read', $this->translate('Allow to configure hosts'));
|
|
|
|
$this->providePermission('director/hosts/write', $this->translate('Allow to configure hosts'));
|
|
|
|
$this->providePermission('director/templates/read', $this->translate('Allow to see template details'));
|
|
|
|
$this->providePermission('director/templates/write', $this->translate('Allow to configure templates'));
|
|
|
|
|
2016-03-18 16:02:58 +01:00
|
|
|
$this->provideSearchUrl($this->translate('Host configs'), 'director/hosts?limit=10', 60);
|
|
|
|
|
2015-07-30 09:05:32 +02:00
|
|
|
$this->provideRestriction(
|
|
|
|
'director/hosttemplates/filter',
|
|
|
|
$this->translate('Allow to use only host templates matching this filter')
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->provideRestriction(
|
|
|
|
'director/dbresources/use',
|
|
|
|
$this->translate('Allow to use only these db resources (comma separated list)')
|
|
|
|
);
|
|
|
|
|
2015-06-29 15:40:24 +02:00
|
|
|
$this->provideConfigTab('config', array(
|
|
|
|
'title' => 'Configuration',
|
|
|
|
'url' => 'settings'
|
|
|
|
));
|
|
|
|
|
2015-06-29 11:31:35 +02:00
|
|
|
$section = $this->menuSection(
|
|
|
|
$this->translate('Icinga Director')
|
2016-02-27 02:02:43 +01:00
|
|
|
)->setUrl('director')->setPriority(60)->setIcon(
|
2016-02-18 16:12:38 +01:00
|
|
|
'cubes'
|
|
|
|
)->setRenderer(array(
|
|
|
|
'SummaryNavigationItemRenderer',
|
|
|
|
'state' => 'critical'
|
|
|
|
));
|
2015-06-29 11:31:35 +02:00
|
|
|
|
2015-11-15 10:19:27 +01:00
|
|
|
$section->add($this->translate('Hosts'))->setUrl('director/hosts')->setPriority(30);
|
2016-08-23 18:06:05 +02:00
|
|
|
$section->add($this->translate('Services'))->setUrl('director/services/templates')->setPriority(40);
|
2015-11-15 10:19:27 +01:00
|
|
|
$section->add($this->translate('Commands'))->setUrl('director/commands')->setPriority(50);
|
|
|
|
$section->add($this->translate('Users'))->setUrl('director/users')->setPriority(70);
|
2016-05-03 10:00:48 +02:00
|
|
|
$section->add($this->translate('Automation'))
|
2015-07-22 10:12:50 +02:00
|
|
|
->setUrl('director/list/importsource')
|
|
|
|
->setPriority(901);
|
2016-05-03 10:00:48 +02:00
|
|
|
$section->add($this->translate('Config history'))
|
2016-05-13 16:57:32 +02:00
|
|
|
->setUrl('director/config/activities')
|
2016-02-18 16:12:38 +01:00
|
|
|
->setPriority(902)
|
|
|
|
->setRenderer('ConfigHealthItemRenderer');
|