From e2472be153b61a9c1f7d8abebdc1e7ddecdcc69a Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 14 Oct 2013 09:48:00 +0200 Subject: [PATCH] Vagrant: Update Icinga 2 IDO config. Fixes #4862 --- .../etc/icinga2/features-available/ido-mysql.conf | 13 +++++++++++++ .vagrant-puppet/manifests/default.pp | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 .vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf diff --git a/.vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf b/.vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf new file mode 100644 index 000000000..70cec39a3 --- /dev/null +++ b/.vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf @@ -0,0 +1,13 @@ +/** + * The ido_mysql library implements IDO functionality + * for MySQL. + */ + +library "db_ido_mysql" + +object IdoMysqlConnection "ido-mysql" { + user = "icinga", + password = "icinga", + host = "localhost", + database = "icinga" +} diff --git a/.vagrant-puppet/manifests/default.pp b/.vagrant-puppet/manifests/default.pp index 451792dae..586e183c4 100644 --- a/.vagrant-puppet/manifests/default.pp +++ b/.vagrant-puppet/manifests/default.pp @@ -109,6 +109,13 @@ service { 'icinga2': require => Package['icinga2'] } +# icinga 2 IDO config +file { '/etc/icinga2/features-available/ido-mysql.conf': + source => 'puppet:////vagrant/.vagrant-puppet/files/etc/icinga2/features-available/ido-mysql.conf', + require => Package['icinga2'], + notify => Service['icinga2'] +} + exec { 'Enable Icinga 2 features': command => 'i2enfeature statusdat; \ i2enfeature compat-log; \ -- 2.40.0