summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathieu Othacehe <othacehe@gnu.org>2021-02-08 12:30:12 +0100
committerMathieu Othacehe <othacehe@gnu.org>2021-02-08 13:44:06 +0100
commit703e5c92eeb38d86455c2b1cace5cad9fc08b349 (patch)
treefde3b8b5664c1ab77d0a5861bacc55d2eb4058b6
parent3bbbaec86c76aabec5a71d5e7024b612e3825a86 (diff)
downloadguix-703e5c92eeb38d86455c2b1cace5cad9fc08b349.tar.gz
services: cuirass: Add Zabbix support.
* gnu/services/cuirass.scm (<cuirass-configuration>)[zabbix-uri]: New field.
(cuirass-shepherd-service): Honor it.
-rw-r--r--gnu/services/cuirass.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/services/cuirass.scm b/gnu/services/cuirass.scm
index 2d0bf47b48..d291d494fc 100644
--- a/gnu/services/cuirass.scm
+++ b/gnu/services/cuirass.scm
@@ -109,6 +109,8 @@
                     (default #f))
   (fallback?        cuirass-configuration-fallback? ;boolean
                     (default #f))
+  (zabbix-uri       cuirass-configuration-zabbix-uri ;string
+                    (default #f))
   (extra-options    cuirass-configuration-extra-options
                     (default '())))
 
@@ -129,6 +131,7 @@
         (use-substitutes? (cuirass-configuration-use-substitutes? config))
         (one-shot?        (cuirass-configuration-one-shot? config))
         (fallback?        (cuirass-configuration-fallback? config))
+        (zabbix-uri       (cuirass-configuration-zabbix-uri config))
         (extra-options    (cuirass-configuration-extra-options config)))
     `(,(shepherd-service
         (documentation "Run Cuirass.")
@@ -145,6 +148,11 @@
                         #$@(if use-substitutes? '("--use-substitutes") '())
                         #$@(if one-shot? '("--one-shot") '())
                         #$@(if fallback? '("--fallback") '())
+                        #$@(if zabbix-uri
+                               (list (string-append
+                                      "--zabbix-uri="
+                                      zabbix-uri))
+                               '())
                         #$@extra-options)
 
                   #:environment-variables