me
/
guix
Archived
1
0
Fork 0

services: cuirass: Add Zabbix support.

* gnu/services/cuirass.scm (<cuirass-configuration>)[zabbix-uri]: New field.
(cuirass-shepherd-service): Honor it.
master
Mathieu Othacehe 2021-02-08 12:30:12 +01:00
parent 3bbbaec86c
commit 703e5c92ee
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 8 additions and 0 deletions

View File

@ -109,6 +109,8 @@
(default #f)) (default #f))
(fallback? cuirass-configuration-fallback? ;boolean (fallback? cuirass-configuration-fallback? ;boolean
(default #f)) (default #f))
(zabbix-uri cuirass-configuration-zabbix-uri ;string
(default #f))
(extra-options cuirass-configuration-extra-options (extra-options cuirass-configuration-extra-options
(default '()))) (default '())))
@ -129,6 +131,7 @@
(use-substitutes? (cuirass-configuration-use-substitutes? config)) (use-substitutes? (cuirass-configuration-use-substitutes? config))
(one-shot? (cuirass-configuration-one-shot? config)) (one-shot? (cuirass-configuration-one-shot? config))
(fallback? (cuirass-configuration-fallback? config)) (fallback? (cuirass-configuration-fallback? config))
(zabbix-uri (cuirass-configuration-zabbix-uri config))
(extra-options (cuirass-configuration-extra-options config))) (extra-options (cuirass-configuration-extra-options config)))
`(,(shepherd-service `(,(shepherd-service
(documentation "Run Cuirass.") (documentation "Run Cuirass.")
@ -145,6 +148,11 @@
#$@(if use-substitutes? '("--use-substitutes") '()) #$@(if use-substitutes? '("--use-substitutes") '())
#$@(if one-shot? '("--one-shot") '()) #$@(if one-shot? '("--one-shot") '())
#$@(if fallback? '("--fallback") '()) #$@(if fallback? '("--fallback") '())
#$@(if zabbix-uri
(list (string-append
"--zabbix-uri="
zabbix-uri))
'())
#$@extra-options) #$@extra-options)
#:environment-variables #:environment-variables