From 0b1998f8fd1976902cdb1d0aa4cea662a4a3192d Mon Sep 17 00:00:00 2001 From: John Dyer Date: Mon, 15 Sep 2014 16:56:36 -0400 Subject: [PATCH] Update specs and readme for #42 --- CHANGELOG.md | 3 +++ README.md | 25 ++++++++++++++++++++++++ spec/unit/recipes/install_binary_spec.rb | 2 +- spec/unit/recipes/ui_spec.rb | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6985d981..672655e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index f872db40..bd2d5b8f 100644 --- a/README.md +++ b/README.md @@ -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] () and a growing community of [contributors][4]. diff --git a/spec/unit/recipes/install_binary_spec.rb b/spec/unit/recipes/install_binary_spec.rb index b0fa8470..188c4658 100644 --- a/spec/unit/recipes/install_binary_spec.rb +++ b/spec/unit/recipes/install_binary_spec.rb @@ -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') } diff --git a/spec/unit/recipes/ui_spec.rb b/spec/unit/recipes/ui_spec.rb index b7310b62..aa2163cb 100644 --- a/spec/unit/recipes/ui_spec.rb +++ b/spec/unit/recipes/ui_spec.rb @@ -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