app/nut: Inherit container udev rules units
infra/cfg/pipeline/head This commit looks good
Details
infra/cfg/pipeline/head This commit looks good
Details
I missed getting the path and service unit file templates when rewriting from KCL into CUE.master
parent
37d65984c7
commit
44926c944f
|
@ -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
|
package nut
|
||||||
|
|
||||||
templates: [
|
import "du5t1n.me/cfg/schema/app/containerudev"
|
||||||
|
|
||||||
|
templates: containerudev.templates + [
|
||||||
{
|
{
|
||||||
template: "nut/nut.sysusers"
|
template: "nut/nut.sysusers"
|
||||||
dest: "/etc/sysusers.d/nut.conf"
|
dest: "/etc/sysusers.d/nut.conf"
|
||||||
|
|
Loading…
Reference in New Issue