le1t0-deprec 2.1.6.024 → 2.1.6.025

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  # deprec changelog
2
2
 
3
+ = 2.1.6.025 (Jul 15, 2010)
4
+
5
+ * bugfix for haproxy + fix user to run haproxy under
6
+
3
7
  = 2.1.6.024 (Jul 15, 2010)
4
8
 
5
9
  * made haproxy configurable
@@ -11,8 +11,11 @@ Capistrano::Configuration.instance(:must_exist).load do
11
11
 
12
12
  }
13
13
 
14
+ set :haproxy_user, 'root'
15
+ set :haproxy_group, 'root'
16
+
14
17
  # :haproxy_global_options should be a hash of options, in key => value pairs. Values can also be arrays of strings.
15
- set :haproxy_global_options => {
18
+ set :haproxy_global_options, {
16
19
  "log" => "/var/log/haproxy.log daemon info",
17
20
  "maxconn" => 4096,
18
21
  "pidfile" => "/var/run/haproxy.pid",
@@ -22,7 +25,7 @@ Capistrano::Configuration.instance(:must_exist).load do
22
25
  # :haproxy_default_options should be a hash of options, in key => value pairs.
23
26
  # :stats_auth => 'user:password' presence of this setting automatically enables stats
24
27
  # :options => hash of options, in key => value pairs. Values can also be arrays of strings.
25
- set :haproxy_default_options => {
28
+ set :haproxy_default_options, {
26
29
  :stats_auth => 'user:password',
27
30
  :options => {
28
31
  "option" => [
@@ -41,7 +41,7 @@ haproxy_start()
41
41
 
42
42
  haproxy_stop()
43
43
  {
44
- start-stop-daemon --stop --user root --pidfile "$PIDFILE" \
44
+ start-stop-daemon --stop --user <%= haproxy_user %> --pidfile "$PIDFILE" \
45
45
  || return 2
46
46
  return 0
47
47
  }
@@ -5,6 +5,8 @@
5
5
  # haproxy -f /etc/haproxy.cfg -sf `cat /var/run/haproxy.pid`
6
6
  #
7
7
  global
8
+ user <%= haproxy_user %>
9
+ group <%= haproxy_group %>
8
10
  <% haproxy_global_options.each do |key, values| [values].flatten.each do |value| %>
9
11
  <%= key %> <%= value %>
10
12
  <% end end %>
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 1
8
8
  - 6
9
- - 24
10
- version: 2.1.6.024
9
+ - 25
10
+ version: 2.1.6.025
11
11
  platform: ruby
12
12
  authors:
13
13
  - Le1t0