Files
mgmt/examples/lang/consul2.mcl
Julien Pivotto 3e16d1da46 engine: resources: Add new consul resource
This commit adds a new consul:kv resource which allows us to set and
watch keys inside a consul kv datastore.

This was started by roidelapluie, and was finished during pair
programming with purpleidea.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
Signed-off-by: James Shubin <james@shubin.ca>
2019-11-01 21:38:08 -04:00

8 lines
153 B
Plaintext

import "datetime"
$d = datetime.now()
consul:kv "love" {
key => "mgmt/time",
value => template("hello! it is now: {{ datetime_print . }}\n", $d),
}