Skip to content

Commit

Permalink
Update specs and readme for #42
Browse files Browse the repository at this point in the history
  • Loading branch information
johntdyer committed Sep 15, 2014
1 parent 701bc22 commit 0b1998f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.4.2
Bumps default version of Consul to 0.4.0

# 0.4.1
Bumps default version of Consul to 0.3.1.

Expand Down
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,31 @@ Include `consul::ui` in your node's `run_list`:
}
```

### LWRP

#### Adding service without check
consul_service "voice1" do
port 5060
tags: ["_sip._udp"]
end

#### Adding service with check

consul_service "voice1" do
port 5060
tags: ["_sip._udp"]
check (
interval: '10s',
script: 'echo ok'
)
end

#### Removing service

consul_service "voice1" do
action :delete
end

## Authors

Created and maintained by [John Bellone][3] [@johnbellone][2] (<jbellone@bloomberg.net>) and a growing community of [contributors][4].
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/install_binary_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
it { expect(chef_run).to include_recipe('ark::default') }
it do
expect(chef_run).to dump_ark('consul')
.with(version: '0.3.1')
.with(version: '0.4.0')
.with(path: '/usr/local/bin')
end
it { expect(chef_run).to touch_file('/usr/local/bin/consul') }
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/recipes/ui_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
it do
expect(chef_run).to put_ark('consul_ui')
.with(path: '/var/lib/consul/ui')
.with(version: '0.3.1')
.with(version: '0.4.0')
end
end

0 comments on commit 0b1998f

Please sign in to comment.