classify_cluster 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -47,6 +47,8 @@ module ClassifyCluster
|
|
47
47
|
@node.klass "#{@type.to_s}server::onpremise"
|
48
48
|
when "search"
|
49
49
|
@node.klass "#{@type.to_s}server::onpremise"
|
50
|
+
when "file"
|
51
|
+
@node.klass "#{@type.to_s}server::onpremise"
|
50
52
|
end
|
51
53
|
end
|
52
54
|
def add_variable_from_role
|
@@ -64,6 +66,9 @@ module ClassifyCluster
|
|
64
66
|
@node.cluster.variable 'solr_host', @node.private_ip
|
65
67
|
when 'munin'
|
66
68
|
@node.cluster.variable('munin_master', @node.private_ip) if @options.has_key?(:master)
|
69
|
+
when 'file'
|
70
|
+
@node.cluster.variables['fileserver_hosts'] ||= []
|
71
|
+
@node.cluster.variables['fileserver_hosts'] << @node.private_ip
|
67
72
|
end
|
68
73
|
end
|
69
74
|
def method_missing(method_name, *args)
|
@@ -11,7 +11,8 @@ module ClassifyCluster
|
|
11
11
|
'web' => 'web',
|
12
12
|
'push' => 'push',
|
13
13
|
'puppet_master' => 'puppet_master',
|
14
|
-
'search' => 'solr'
|
14
|
+
'search' => 'solr',
|
15
|
+
'file' => 'file'
|
15
16
|
}
|
16
17
|
def self.export!(capistrano_configurator, cluster, config_file=ClassifyCluster::Base.default_config_file)
|
17
18
|
config = ClassifyCluster::Configurator::Configuration.new(config_file).clusters[cluster]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: classify_cluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sean Cashin
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-18 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|