Verified Commit 65fc861b authored by David Kunz's avatar David Kunz

Adding upstream version 1.6.0.

Signed-off-by: David Kunz's avatarDavid Kunz <david.kunz@dknet.ch>
parent 802d907f
Pipeline #34147 failed with stages

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

## Expected Behavior
<!--- If you're describing a bug, tell us what should happen -->
<!--- If you're suggesting a change/improvement, tell us how it should work -->
## Current Behavior
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
## Possible Solution
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
<!--- or ideas how to implement: the addition or change -->
## Steps to Reproduce (for bugs)
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
<!--- reproduce this bug. Include configuration, logs, etc. to reproduce, if relevant -->
## Your Environment
<!--- Include as many relevant details about the environment you experienced the problem in -->
* Director version (System - About):
* Icinga Web 2 version and modules (System - About):
* Icinga 2 version (`icinga2 --version`):
* Operating System and version:
* Webserver, PHP versions:
## Editors
/.idea/
.*.sw[op]
## PHP vendor artifacts
/vendor/
stages:
- Coding Standards
- Unit-Tests with DB
PSR2 CS Test:
stage: Coding Standards
tags:
- xenial
script:
- phpcs --report-width=auto --report-full --report-gitblame --report-summary -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Director/ library/vendor/ipl/ application/ *.php test
CentOS 7/MySQL:
stage: Unit-Tests with DB
tags:
- centos7
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director MySQL TestDB"
before_script:
- mysql -u root -e "CREATE DATABASE $DIRECTOR_TESTDB"
after_script:
- mysql -u root -e "DROP DATABASE $DIRECTOR_TESTDB"
script:
- phpunit --verbose
CentOS 7/PostgreSQL:
stage: Unit-Tests with DB
tags:
- centos7
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director PostgreSQL TestDB"
DIRECTOR_TESTDB_USER: "director_${CI_BUILD_ID}_${CI_RUNNER_ID}"
before_script:
- psql postgres -q -c "CREATE DATABASE $DIRECTOR_TESTDB WITH ENCODING 'UTF8';"
- psql $DIRECTOR_TESTDB -q -c "CREATE USER $DIRECTOR_TESTDB_USER WITH PASSWORD 'testing'; GRANT ALL PRIVILEGES ON DATABASE $DIRECTOR_TESTDB TO $DIRECTOR_TESTDB_USER; CREATE EXTENSION pgcrypto;"
after_script:
- psql postgres -c "DROP DATABASE $DIRECTOR_TESTDB"
- psql postgres -c "DROP USER $DIRECTOR_TESTDB_USER"
script:
- phpunit --verbose
#CentOS 6/MySQL:
# stage: Unit-Tests with DB
# tags:
# - centos6
# - director
# variables:
# DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
# DIRECTOR_TESTDB_RES: "Director MySQL TestDB"
# before_script:
# - mysql -u root -e "CREATE DATABASE $DIRECTOR_TESTDB"
# after_script:
# - mysql -u root -e "DROP DATABASE $DIRECTOR_TESTDB"
# script:
# - phpunit
Jessie/MySQL:
stage: Unit-Tests with DB
tags:
- jessie
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director MySQL TestDB"
before_script:
- mysql -u root -e "CREATE DATABASE $DIRECTOR_TESTDB"
after_script:
- mysql -u root -e "DROP DATABASE $DIRECTOR_TESTDB"
script:
- phpunit --verbose
Jessie/PostgreSQL:
stage: Unit-Tests with DB
tags:
- jessie
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director PostgreSQL TestDB"
DIRECTOR_TESTDB_USER: "director_${CI_BUILD_ID}_${CI_RUNNER_ID}"
before_script:
- psql postgres -q -c "CREATE DATABASE $DIRECTOR_TESTDB WITH ENCODING 'UTF8';"
- psql $DIRECTOR_TESTDB -q -c "CREATE USER $DIRECTOR_TESTDB_USER WITH PASSWORD 'testing'; GRANT ALL PRIVILEGES ON DATABASE $DIRECTOR_TESTDB TO $DIRECTOR_TESTDB_USER; CREATE EXTENSION pgcrypto;"
after_script:
- psql postgres -c "DROP DATABASE $DIRECTOR_TESTDB"
- psql postgres -c "DROP USER $DIRECTOR_TESTDB_USER"
script:
- phpunit --verbose
Xenial/MySQL:
stage: Unit-Tests with DB
tags:
- xenial
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director MySQL TestDB"
before_script:
- mysql -u root -e "CREATE DATABASE $DIRECTOR_TESTDB"
after_script:
- mysql -u root -e "DROP DATABASE $DIRECTOR_TESTDB"
script:
- phpunit --verbose
Xenial/PostgreSQL:
stage: Unit-Tests with DB
tags:
- ubuntu
- director
variables:
DIRECTOR_TESTDB: "director_test_${CI_BUILD_ID}_${CI_RUNNER_ID}"
DIRECTOR_TESTDB_RES: "Director PostgreSQL TestDB"
DIRECTOR_TESTDB_USER: "director_${CI_BUILD_ID}_${CI_RUNNER_ID}"
before_script:
- psql postgres -q -c "CREATE DATABASE $DIRECTOR_TESTDB WITH ENCODING 'UTF8';"
- psql $DIRECTOR_TESTDB -q -c "CREATE USER $DIRECTOR_TESTDB_USER WITH PASSWORD 'testing'; GRANT ALL PRIVILEGES ON DATABASE $DIRECTOR_TESTDB TO $DIRECTOR_TESTDB_USER; CREATE EXTENSION pgcrypto;"
after_script:
- psql postgres -c "DROP DATABASE $DIRECTOR_TESTDB"
- psql postgres -c "DROP USER $DIRECTOR_TESTDB_USER"
script:
- phpunit --verbose
language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- '7.2'
- '7.3'
- nightly
services:
- mysql
- postgresql
cache:
directories:
- vendor
matrix:
fast_finish: true
include:
- env: CHECK=phpcs
php: nightly # Note: will be allowed failure
- env: CHECK=phpcs
php: '7.0'
- env: CHECK=phpcs
php: '5.4'
allow_failures:
- php: nightly
- php: '7.3'
env:
- CHECK=phpunit DB=mysql DIRECTOR_TESTDB_RES="Director MySQL TestDB" DIRECTOR_TESTDB="director_test"
- CHECK=phpunit DB=pgsql DIRECTOR_TESTDB_RES="Director PostgreSQL TestDB" DIRECTOR_TESTDB="director_test"
DIRECTOR_TESTDB_USER="director_test"
before_script:
- ./test/setup_vendor.sh
- '[ "$CHECK" != phpunit ] || ./test/travis-prepare.sh'
script:
- '[ "$CHECK" != phpcs ] || php vendor/phpcs.phar'
- '[ "$CHECK" != phpunit ] || php vendor/phpunit.phar --testdox || php vendor/phpunit.phar --verbose'
This diff is collapsed.
Icinga Director
===============
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.
![Icinga Director](doc/screenshot/director/readme/director_main_screen.png)
Read more about Icinga Director in our [Introduction](doc/01-Introduction.md) section.
Afterwards, you should be ready for [getting started](doc/04-Getting-started.md).
Documentation
-------------
Please have a look at our [Installation instructions](doc/02-Installation.md)
and our hints for how to apply [Upgrades](doc/05-Upgrading.md). We love automation
and in case you also do so, the [Automation chapter](doc/03-Automation.md) could
be worth a read. When upgrading, you should also have a look at our [Changelog](doc/82-Changelog.md).
You could be interested in understanding how the [Director works](doc/10-How-it-works.md)
internally. [Working with agents](doc/24-Working-with-agents.md) is a topic that
affects many Icinga administrators. Other interesting entry points might be
[Import and Synchronization](doc/70-Import-and-Sync.md), our [CLI interface](doc/60-CLI.md),
the [REST API](doc/70-REST-API.md) and last but not least our [FAQ](doc/80-FAQ.md).
A complete list of all our documentation can be found in the [doc](doc/) directory.
Contributing
------------
Icinga Director is an Open Source project and lives from your contributions. No
matter whether these are feature requests, issues, translations, documentation
or code.
* Please check whether a related issue already exists on our [Issue Tracker](https://github.com/Icinga/icingaweb2-module-director/issues)
* Make sure your code conforms to the [PSR-2: Coding Style Guide](http://www.php-fig.org/psr/psr-2/)
* [Unit-Tests](doc/93-Testing.md) would be great
* Send a [Pull Request](https://github.com/Icinga/icingaweb2-module-director/pulls)