From caccffcb6522847b34ebda5a927314480db6297b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 19 Jan 2024 17:21:23 -0600 Subject: [PATCH] nut: split out template for sysusers.d config Hosts that run `upsmon` but not `upsd` still need the *nut* user. --- app/nut/templates.cue | 5 ++++- instructions/nvr1.pyrocufflink.blue.cue | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/nut/templates.cue b/app/nut/templates.cue index e68f02d..ee9685e 100644 --- a/app/nut/templates.cue +++ b/app/nut/templates.cue @@ -2,7 +2,7 @@ package nut import "du5t1n.me/cfg/app/containerudev" -templates: containerudev.templates + [ +sysusers: templates: [ { template: "nut/nut.sysusers" dest: "/etc/sysusers.d/nut.conf" @@ -13,6 +13,9 @@ templates: containerudev.templates + [ }] } }, +] + +templates: containerudev.templates + sysusers.templates + [ { template: "nut/ups.conf" dest: "/etc/ups/ups.conf" diff --git a/instructions/nvr1.pyrocufflink.blue.cue b/instructions/nvr1.pyrocufflink.blue.cue index aed6528..3e3988b 100644 --- a/instructions/nvr1.pyrocufflink.blue.cue +++ b/instructions/nvr1.pyrocufflink.blue.cue @@ -7,5 +7,6 @@ import ( ) render: list.Concat([ + nut.sysusers.templates, nut.monitor.templates, ])