[puppet] Make check_mk postgres plugin optional
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [puppet] Make check_mk postgres plugin optional
- Date: Fri, 5 Apr 2019 18:22:38 +0000 (UTC)
commit 71d132ecb13ce869e80c875820df27fb339f51f1
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Apr 5 20:17:53 2019 +0200
Make check_mk postgres plugin optional
modules/postgresql/manifests/init.pp | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 8f58f237..8d0e2d4b 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -1,4 +1,6 @@
-class postgresql {
+class postgresql (
+ enable_check_mk => 'true',
+) {
package { 'postgresql': ensure => installed, }
package { 'postgresql-server': ensure => installed, }
@@ -10,9 +12,11 @@ class postgresql {
hasstatus => true,
}
- file { '/usr/share/check-mk-agent/plugins/mk_postgres':
- ensure => link,
- target => '/usr/share/check-mk-agent/available-plugins/mk_postgres',
+ if $enable_check_mk == 'true' {
+ file { '/usr/share/check-mk-agent/plugins/mk_postgres':
+ ensure => link,
+ target => '/usr/share/check-mk-agent/available-plugins/mk_postgres',
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]