Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow defining BEANSTALKD_LISTEN_PORT for ubuntu based on opts #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
license 'MIT'
description 'Installs/Configures beanstalkd'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.3.0'
version '0.3.2'

%w(debian ubuntu redhat centos fedora scientific amazon).each do |os|
supports os
end

source_url 'https://github.com/djoos-cookbooks/beanstalkd' if respond_to?(:source_url)
issues_url 'https://github.com/djoos-cookbooks/beanstalkd/issues' if respond_to?(:issues_url)
depends 'php'
depends 'python'


recipe 'beanstalkd', 'Installs beanstalkd.'
1 change: 1 addition & 0 deletions templates/ubuntu/beanstalkd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
## Debian systems. Append ``-b /var/lib/beanstalkd'' for persistent
## storage.
BEANSTALKD_LISTEN_ADDR="<%= @listen_addr %>"
BEANSTALKD_LISTEN_PORT=<% if @opts['p'].nil? %>11300<% else %><%= @opts['p'] %><% end %>
BEANSTALKD_EXTRA="<% @opts.each do |k,v| %><%= "-#{k} #{v}" %> <% end %>"
DAEMON_OPTS=$BEANSTALKD_EXTRA

Expand Down