27 lines
495 B
Plaintext
27 lines
495 B
Plaintext
package loki
|
|
|
|
import "du5t1n.me/cfg/base/schema/instructions"
|
|
|
|
templates: [...instructions.#RenderInstruction] & [
|
|
{
|
|
template: "loki/config.yml"
|
|
dest: "/etc/loki/config.yml"
|
|
hooks: {
|
|
changed: [{run: "systemctl try-restart loki"}]
|
|
}
|
|
},
|
|
{
|
|
template: "loki/loki.container"
|
|
dest: "/etc/containers/systemd/loki.container"
|
|
hooks: {
|
|
changed: [
|
|
{
|
|
run: "systemctl daemon-reload"
|
|
immediate: true
|
|
},
|
|
{run: "systemctl restart loki"},
|
|
]
|
|
}
|
|
},
|
|
]
|