2016-06-23 17:09:06 +02:00
|
|
|
<a id="Installation"></a>Installation
|
|
|
|
=====================================
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
These are the instructions for manual Director installations. You can
|
2016-03-23 10:12:33 +01:00
|
|
|
learn more about how to automate this in the [automation](03-Automation.md) section
|
2016-06-23 18:18:29 +02:00
|
|
|
of this documentation. In case you already installed Director and want to upgrade
|
|
|
|
to the latest version, please [read on here](05-Upgrading.md).
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
2017-07-29 01:35:44 +02:00
|
|
|
* Icinga 2 (>= 2.6.0). All versions sinve 2.4.3 should also work fine, but
|
|
|
|
we do no longer test and support them.
|
|
|
|
* Icinga Web 2 (>= 2.4.1). All versions since 2.2 should also work fine, but
|
|
|
|
might show smaller UI bugs and are not actively tested
|
|
|
|
* A database, MySQL (>= 5.1) or PostgreSQL (>= 9.1). MariaDB and other
|
|
|
|
MySQL forks are also fine. Mentioned versions are the required minimum,
|
|
|
|
for MySQL we suggest using at least 5.5.3, for PostgreSQL 9.4.
|
|
|
|
* PHP (>= 5.4). For best performance please consider use 7.x
|
|
|
|
* php-curl
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
Database
|
|
|
|
--------
|
|
|
|
|
|
|
|
### Create an empty Icinga Director database
|
|
|
|
|
2016-03-31 18:06:05 +02:00
|
|
|
HINT: You should replace `some-password` with a secure custom password.
|
|
|
|
|
|
|
|
#### MySQL (or MariaDB)
|
2016-03-07 00:49:29 +01:00
|
|
|
|
|
|
|
mysql -e "CREATE DATABASE director CHARACTER SET 'utf8';
|
|
|
|
GRANT ALL ON director.* TO director@localhost IDENTIFIED BY 'some-password';"
|
|
|
|
|
2016-03-31 18:06:05 +02:00
|
|
|
In case your MySQL root user is password-protected, please add `-p` to this
|
|
|
|
command.
|
|
|
|
|
2016-03-07 00:49:29 +01:00
|
|
|
#### PostgreSQL
|
|
|
|
|
|
|
|
|
|
|
|
psql -q -c "CREATE DATABASE director WITH ENCODING 'UTF8';"
|
|
|
|
psql director -q -c "CREATE USER director WITH PASSWORD 'some-password';
|
2016-10-09 14:43:04 +02:00
|
|
|
GRANT ALL PRIVILEGES ON DATABASE director TO director;
|
|
|
|
CREATE EXTENSION pgcrypto;"
|
2016-03-07 00:49:29 +01:00
|
|
|
|
2016-10-09 14:43:04 +02:00
|
|
|
Hint: pgcrypto helps to boost performance, but is currently optional. In case you
|
|
|
|
do not have it available on your platform and/or do not know how to solve this
|
|
|
|
just leave away the 'CREATE EXTENSION' part.
|
2016-03-07 00:49:29 +01:00
|
|
|
|
2016-03-31 18:06:05 +02:00
|
|
|
Web-based Configuration
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
The following steps should guide you through the web-based Kickstart wizard.
|
|
|
|
In case you prefer automated configuration, you should check the dedicated
|
2016-04-22 15:18:21 +02:00
|
|
|
[documentation section](03-Automation.md).
|
2016-03-31 18:06:05 +02:00
|
|
|
|
|
|
|
### Create a Database resource
|
2016-03-07 00:49:29 +01:00
|
|
|
|
2016-04-01 10:20:57 +02:00
|
|
|
In your web frontend please go to `Configuration / Application / Resources`
|
|
|
|
and create a new database resource pointing to your newly created database.
|
|
|
|
Please make sure that you choose `utf8` as an encoding.
|
2016-03-07 00:49:29 +01:00
|
|
|
|
2016-03-31 18:06:05 +02:00
|
|
|
|
|
|
|
### Install the Director module
|
|
|
|
|
2016-03-07 00:49:29 +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. You can examine (and set) the module path(s)
|
2016-04-01 10:20:57 +02:00
|
|
|
in `Configuration / Application`. In a typical environment you'll probably drop the
|
2016-03-07 00:49:29 +01:00
|
|
|
module to `/usr/share/icingaweb2/modules/director`. Please note that the directory
|
|
|
|
name MUST be `director` and not `icingaweb2-module-director` or anything else.
|
|
|
|
|
2016-03-31 18:06:05 +02:00
|
|
|
|
|
|
|
### Run the graphical kickstart wizard
|
|
|
|
|
2016-03-07 00:49:29 +01:00
|
|
|
Now go to your web frontend, Configuration, Modules, director - and enable the
|
2016-03-21 19:27:19 +01:00
|
|
|
module. Choose either Director directly from the menu or got to the Configuration
|
|
|
|
tab. Either way you'll reach the kickstart wizards. Follow the instructions and
|
|
|
|
you're all done!
|