Skip to content

Commit 6f9dcaf

Browse files
author
jtimberman
committed
cook-33, add a default listener for example, update doc, move defaults for ubuntu to template
1 parent 324e505 commit 6f9dcaf

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ Unless required by applicable law or agreed to in writing, software
3434
distributed under the License is distributed on an "AS IS" BASIS,
3535
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3636
See the License for the specific language governing permissions and
37-
limitations under the License.
37+
limitations under the License.

recipes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
action :install
2222
end
2323

24-
remote_file "/etc/default/haproxy" do
25-
source "haproxy-default"
24+
template "/etc/default/haproxy" do
25+
source "haproxy-default.erb"
2626
owner "root"
2727
group "root"
2828
mode 0644
File renamed without changes.

templates/default/haproxy.cfg.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ defaults
2020
clitimeout 50000
2121
srvtimeout 50000
2222

23-
# Set up application listeners here.
23+
# Set up application listeners here.
24+
listen application 0.0.0.0:8400
25+
balance roundrobin
26+
server localhost 127.0.0.1:4000 weight 1 maxconn 5 check
27+
server localhost 127.0.0.1:4001 weight 1 maxconn 5 check

0 commit comments

Comments
 (0)