25 lines
812 B
Text
25 lines
812 B
Text
|
|
let _presets = (import "schemas/lib/concerns_presets.ncl").presets in
|
||
|
|
|
||
|
|
{
|
||
|
|
longhorn_node_prep | default = {
|
||
|
|
mode | default = 'taskserv,
|
||
|
|
data_path | default = "/var/lib/longhorn",
|
||
|
|
node_labels | default = { "node.longhorn.io/create-default-disk" = "true" },
|
||
|
|
operations | default = {
|
||
|
|
install = true,
|
||
|
|
reinstall = true,
|
||
|
|
delete = false,
|
||
|
|
},
|
||
|
|
live_check | default = {
|
||
|
|
strategy = 'systemd,
|
||
|
|
scope = 'node,
|
||
|
|
unit = "iscsid",
|
||
|
|
},
|
||
|
|
|
||
|
|
# ServiceConcerns default — node-level prep for Longhorn; stateless preset with custom backup reason.
|
||
|
|
concerns | default = _presets.stateless & {
|
||
|
|
backup | force = { kind = 'disabled, reason = "stateless: node-level prep; storage volumes captured by SystemBackupDef.longhorn_engine" },
|
||
|
|
},
|
||
|
|
},
|
||
|
|
}
|