From 03877f2378f5f3378d495cb66b6f005c1a24c79d Mon Sep 17 00:00:00 2001 From: John Dyer Date: Mon, 15 Sep 2014 17:33:13 -0400 Subject: [PATCH] Correct LWRP examples ( didnt mean to commit these last time, woops ) - #23 --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4681fe80..0bd02284 100644 --- a/README.md +++ b/README.md @@ -236,26 +236,26 @@ Include `consul::ui` in your node's `run_list`: ### LWRP -#### Adding service without check - consul_service "voice1" do +##### Adding service without check + consul_service_def 'voice1' do port 5060 - tags: ["_sip._udp"] + tags ['_sip._udp'] end -#### Adding service with check +##### Adding service with check - consul_service "voice1" do + consul_service_def 'voice1' do port 5060 - tags: ["_sip._udp"] - check ( + tags ['_sip._udp'] + check( interval: '10s', script: 'echo ok' ) end -#### Removing service +##### Removing service - consul_service "voice1" do + consul_service_def 'voice1' do action :delete end