app/nut: Inherit container udev rules units
All checks were successful
infra/cfg/pipeline/head This commit looks good
All checks were successful
infra/cfg/pipeline/head This commit looks good
I missed getting the path and service unit file templates when rewriting from KCL into CUE.
This commit is contained in:
23
schema/app/containerudev/templates.cue
Normal file
23
schema/app/containerudev/templates.cue
Normal file
@@ -0,0 +1,23 @@
|
||||
package containerudev
|
||||
|
||||
templates: [
|
||||
{
|
||||
template: "common/reload-udev-rules.path"
|
||||
dest: "/etc/systemd/system/reload-udev-rules.path"
|
||||
hooks: {
|
||||
changed: [
|
||||
{run: "systemctl daemon-reload"},
|
||||
{run: "systemctl try-restart reload-udev-rules.path"}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
template: "common/reload-udev-rules.service"
|
||||
dest: "/etc/systemd/system/reload-udev-rules.service"
|
||||
hooks: {
|
||||
changed: [
|
||||
{run: "systemctl daemon-reload"},
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -1,6 +1,8 @@
|
||||
package nut
|
||||
|
||||
templates: [
|
||||
import "du5t1n.me/cfg/schema/app/containerudev"
|
||||
|
||||
templates: containerudev.templates + [
|
||||
{
|
||||
template: "nut/nut.sysusers"
|
||||
dest: "/etc/sysusers.d/nut.conf"
|
||||
|
||||
Reference in New Issue
Block a user