classify_cluster 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,19 @@ module ClassifyCluster
|
|
16
16
|
def self.export!(capistrano_configurator, cluster, config_file=ClassifyCluster::Base.default_config_file)
|
17
17
|
config = ClassifyCluster::Configurator::Configuration.new(config_file).clusters[cluster]
|
18
18
|
config.variables.each_pair do |name, value|
|
19
|
-
capistrano_configurator.set("
|
19
|
+
capistrano_configurator.set("puppet_#{name}".to_sym, value)
|
20
20
|
end
|
21
21
|
config.nodes.each_pair do |name, node|
|
22
22
|
roles = node.roles
|
23
23
|
next if roles.empty?
|
24
|
+
|
24
25
|
roles.each do |role|
|
25
|
-
|
26
|
+
role_name = (CLUSTER_ROLE_2_CAP_ROLE[role.type.to_s] || role.type.to_s)
|
27
|
+
capistrano_configurator.role(role_name, node.fqdn, role.options)
|
28
|
+
if role_name == 'puppet_master'
|
29
|
+
capistrano_configurator.set("puppet_role_puppet_master_fqdn", node.fqdn)
|
30
|
+
capistrano_configurator.set("puppet_role_puppet_master_private_ip", node.private_ip)
|
31
|
+
end
|
26
32
|
end
|
27
33
|
end
|
28
34
|
end
|
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: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 2
|
10
|
+
version: 0.2.2
|
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-11 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|