examples: lang: Add missing folder

This commit is contained in:
James Shubin
2025-05-04 13:54:45 -04:00
parent 6ec707aea7
commit dad15f6adc
2 changed files with 8 additions and 0 deletions

View File

@@ -12,3 +12,7 @@ file "/tmp/mgmt/datetime" {
state => $const.res.file.state.exists, state => $const.res.file.state.exists,
content => golang.template("Hello! It is now: {{ datetime_print .now }}\n\nload average: {{ .load }}\n", $st), content => golang.template("Hello! It is now: {{ datetime_print .now }}\n\nload average: {{ .load }}\n", $st),
} }
file "/tmp/mgmt/" {
state => $const.res.file.state.exists,
}

View File

@@ -18,3 +18,7 @@ file "/tmp/mgmt/datetime" {
state => $const.res.file.state.exists, state => $const.res.file.state.exists,
content => golang.template("Now + 1 year is: {{ .year }} seconds, aka: {{ datetime_print .year }}\n\nload average: {{ .load }}\n\nvu: {{ .vumeter }}\n", $tmplvalues), content => golang.template("Now + 1 year is: {{ .year }} seconds, aka: {{ datetime_print .year }}\n\nload average: {{ .load }}\n\nvu: {{ .vumeter }}\n", $tmplvalues),
} }
file "/tmp/mgmt/" {
state => $const.res.file.state.exists,
}