From f1274ee46d1b4c9947a79ad1cfbdbc3eae355563 Mon Sep 17 00:00:00 2001 From: Mike Fiedler Date: Tue, 7 Apr 2015 23:19:14 +0300 Subject: [PATCH] tcp_check template Refs #110, Refs #177 Signed-off-by: Mike Fiedler --- templates/default/tcp_check.yaml.erb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 templates/default/tcp_check.yaml.erb diff --git a/templates/default/tcp_check.yaml.erb b/templates/default/tcp_check.yaml.erb new file mode 100644 index 00000000..af4872f1 --- /dev/null +++ b/templates/default/tcp_check.yaml.erb @@ -0,0 +1,5 @@ +<%# Sanitize the compiled Mash to standard Array/Hash objects by way of JSON -%> +<%= JSON.parse(({ 'instances' => @instances }).to_json).to_yaml %> + +init_config: +# Nothing to configure here