Skip to content

Commit

Permalink
Merge pull request #44 from johntdyer/master
Browse files Browse the repository at this point in the history
Correct LWRP examples
  • Loading branch information
reset committed Sep 15, 2014
2 parents 27fe676 + 03877f2 commit 16578bd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 16578bd

Please sign in to comment.