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>
8 lines
153 B
Plaintext
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),
|
|
}
|