classify_cluster 0.4.12 → 0.4.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,13 +81,17 @@ module ClassifyCluster
81
81
  case @type.to_s
82
82
  when 'app'
83
83
  @node.cluster.variables['app_hosts'] ||= []
84
+ @node.cluster.variables['app_host_weights'] ||= []
84
85
  @node.cluster.variables['app_hosts'] << @node.private_ip
86
+ @node.cluster.variables['app_host_weights'] << @node.variables['number_of_rails']
85
87
  when 'db'
86
88
  @node.cluster.variable('database_host', @node.private_ip) if @options.has_key?(:primary)
87
89
  when 'queue'
88
90
  @node.cluster.variable 'queue_host', @node.private_ip
89
91
  when 'push'
90
- @node.cluster.variable 'blow_host', @node.private_ip
92
+ @node.cluster.variables['push_servers'] ||= []
93
+ @node.cluster.variables['push_servers'] << @node.private_ip
94
+ @node.cluster.variable 'number_of_push_server_instances', 4
91
95
  when 'search'
92
96
  @node.cluster.variable 'elasticsearch_host', "#{@node.private_ip}:9200"
93
97
  when 'munin'
@@ -1,3 +1,3 @@
1
1
  module ClassifyCluster
2
- VERSION = "0.4.12"
2
+ VERSION = "0.4.13"
3
3
  end
metadata CHANGED
@@ -1,79 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: classify_cluster
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.13
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 12
10
- version: 0.4.12
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Sean Cashin
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-12-08 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: thor
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2154440320 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
18
+ requirements:
27
19
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 43
30
- segments:
31
- - 0
32
- - 14
33
- - 6
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.14.6
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: i18n
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2154440320
25
+ - !ruby/object:Gem::Dependency
26
+ name: i18n
27
+ requirement: &2154439800 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 3
46
- segments:
47
- - 0
48
- version: "0"
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
49
33
  type: :runtime
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: activesupport
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2154439800
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ requirement: &2154439320 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 3
62
- - 0
63
- - 0
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
64
43
  version: 3.0.0
65
44
  type: :runtime
66
- version_requirements: *id003
67
- description: Reading from a YAML file will allow for consistent configuration between capistrano and puppet
68
- email:
45
+ prerelease: false
46
+ version_requirements: *2154439320
47
+ description: Reading from a YAML file will allow for consistent configuration between
48
+ capistrano and puppet
49
+ email:
69
50
  - sean@socialcast.com
70
- executables:
51
+ executables:
71
52
  - classify
72
53
  extensions: []
73
-
74
54
  extra_rdoc_files: []
75
-
76
- files:
55
+ files:
77
56
  - .gitignore
78
57
  - Gemfile
79
58
  - LICENSE
@@ -97,39 +76,28 @@ files:
97
76
  - lib/classify_cluster/writers.rb
98
77
  - lib/classify_cluster/writers/capistrano.rb
99
78
  - lib/classify_cluster/writers/puppet.rb
100
- has_rdoc: true
101
79
  homepage: http://rubygems.org/gems/classify_cluster
102
80
  licenses: []
103
-
104
81
  post_install_message:
105
82
  rdoc_options: []
106
-
107
- require_paths:
83
+ require_paths:
108
84
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
85
+ required_ruby_version: !ruby/object:Gem::Requirement
110
86
  none: false
111
- requirements:
112
- - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
118
- required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
92
  none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 3
124
- segments:
125
- - 0
126
- version: "0"
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
127
97
  requirements: []
128
-
129
98
  rubyforge_project: classify_cluster
130
- rubygems_version: 1.5.3
99
+ rubygems_version: 1.8.10
131
100
  signing_key:
132
101
  specification_version: 3
133
102
  summary: Contains several binaries for generating capistrano and puppet configurations
134
103
  test_files: []
135
-