[icinga-checkins] icinga.org: icingaweb2/feature/deduplicate-puppet-code-6842: Add module `icinga2_pgsql'

git at icinga.org git at icinga.org
Tue Nov 25 16:55:35 CET 2014


Module: icingaweb2
Branch: feature/deduplicate-puppet-code-6842
Commit: 94869bff5ec8535bb0614ee819a5da35edd057ed
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=94869bff5ec8535bb0614ee819a5da35edd057ed

Author: Alexander Klimov <alexander.klimov at netways.de>
Date:   Tue Nov 25 16:29:14 2014 +0100

Add module `icinga2_pgsql'

---

 .../files}/features-available/ido-pgsql.conf          |    0
 .../modules/icinga2_pgsql/manifests/init.pp           |   17 +++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/.vagrant-puppet/files/etc/icinga2/features-available/ido-pgsql.conf b/.vagrant-puppet/modules/icinga2_pgsql/files/features-available/ido-pgsql.conf
similarity index 100%
rename from .vagrant-puppet/files/etc/icinga2/features-available/ido-pgsql.conf
rename to .vagrant-puppet/modules/icinga2_pgsql/files/features-available/ido-pgsql.conf
diff --git a/.vagrant-puppet/modules/icinga2_pgsql/manifests/init.pp b/.vagrant-puppet/modules/icinga2_pgsql/manifests/init.pp
new file mode 100644
index 0000000..2326449
--- /dev/null
+++ b/.vagrant-puppet/modules/icinga2_pgsql/manifests/init.pp
@@ -0,0 +1,17 @@
+class icinga2_pgsql {
+  include icinga2
+  include icinga_packages
+
+  package { 'icinga2-ido-pgsql':
+    ensure  => latest,
+    require => Class['icinga_packages'],
+  }
+  -> pgsql::database::populate { 'icinga2':
+    username   => 'icinga2',
+    password   => 'icinga2',
+    schemafile => '/usr/share/icinga2-ido-pgsql/schema/pgsql.sql',
+  }
+  -> icinga2::feature { 'ido-pgsql':
+    source => 'puppet:///modules/icinga2_pgsql',
+  }
+}



More information about the icinga-checkins mailing list