2015-04-21 13:34:42 +02:00
|
|
|
Icinga Director
|
|
|
|
===============
|
|
|
|
|
2015-11-20 11:07:11 +01:00
|
|
|
Icinga Director has been designed to make Icinga 2 configuration handling easy.
|
|
|
|
It tries to target two main audiences:
|
|
|
|
|
|
|
|
* Users with the desire to completely automate their datacenter
|
|
|
|
* Sysops willing to grant their "point & click" users a lot of flexibility
|
|
|
|
|
|
|
|
What makes Icinga Director so special is the fact that it tries to target both
|
|
|
|
of them at once.
|
|
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
============
|
|
|
|
|
|
|
|
* Icinga 2 (>= 2.4.0)
|
|
|
|
* Icinga Web 2 (>= 2.1.0)
|
|
|
|
* MySQL or PostgreSQL database
|
|
|
|
* PostgreSQL: the schema is lacking behind right now, we'll fix this soon. If you want to start testing Director today please use MySQL
|
2015-06-01 15:02:02 +02:00
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
Create Icinga Director database
|
|
|
|
-------------------------------
|
|
|
|
|
2015-06-24 13:54:28 +02:00
|
|
|
MySQL:
|
|
|
|
|
2015-10-20 13:46:51 +02:00
|
|
|
mysql -e "CREATE DATABASE director;
|
2016-02-08 22:26:13 +01:00
|
|
|
GRANT ALL ON director.* TO director@localhost IDENTIFIED BY 'some-password';"
|
2015-06-01 15:02:02 +02:00
|
|
|
|
|
|
|
mysql director < schema/mysql.sql
|
|
|
|
|
2015-06-24 13:54:28 +02:00
|
|
|
PostgreSQL:
|
|
|
|
|
|
|
|
CREATE DATABASE director WITH ENCODING 'UTF8';
|
|
|
|
CREATE USER director WITH PASSWORD 'some-password';
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE director TO director;
|
|
|
|
|
|
|
|
psql director < schema/pgsql.sql
|
|
|
|
|
|
|
|
|
2015-06-01 17:02:31 +02:00
|
|
|
Configure Icinga Web 2
|
|
|
|
----------------------
|
2015-06-01 15:02:02 +02:00
|
|
|
|
2015-11-20 11:07:11 +01:00
|
|
|
As with any Icinga Web 2 module, installation is pretty straight-forward. In
|
|
|
|
case you're installing it from source all you have to do is to drop the director
|
|
|
|
module in one of your module paths. Then go to your web frontend, Configuration,
|
|
|
|
Modules, director - and enable the module.
|
2015-11-20 11:19:19 +01:00
|
|
|
|
2015-06-01 17:02:31 +02:00
|
|
|
In your web frontend please go to System / Configuration / Resources and create
|
|
|
|
a new database resource pointing to your newly created database. Last but not
|
|
|
|
least you have to tell the director module to use this newly created database
|
|
|
|
resource.
|
|
|
|
|
|
|
|
|