classify_cluster 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- classify_cluster (0.2.7)
4
+ classify_cluster (0.3.8)
5
5
  activesupport (>= 2.3.5)
6
6
  commander (~> 4.0.3)
7
7
  highline (~> 1.6.1)
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- activesupport (3.0.3)
12
+ activesupport (3.0.5)
13
13
  commander (4.0.3)
14
14
  highline (>= 1.5.0)
15
15
  highline (1.6.1)
data/examples/cluster.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # classify_cluster v.0.0.3a
2
2
  cluster_common = %w{ ntp conary sysstat }
3
- onpremise_common = %w{ sudo::onpremise cron::onpremise monit::onpremise logrotate::onpremise }
3
+ onpremise_common = %w{ sudo cron monit logrotate }
4
4
 
5
5
  cluster :"appliance-cluster" do |cluster|
6
6
  (cluster_common + onpremise_common).each do |common_class|
@@ -47,29 +47,29 @@ module ClassifyCluster
47
47
  def add_klass_from_role
48
48
  case @type.to_s
49
49
  when "db"
50
- @node.klass "databaseserver::onpremise" if @options.has_key?(:primary)
51
- @node.klass "databasereplicationserver::onpremise" if @options.has_key?(:backup)
50
+ @node.klass "databaseserver" if @options.has_key?(:primary)
51
+ @node.klass "databasereplicationserver" if @options.has_key?(:backup)
52
52
  when "puppet_master"
53
- @node.klass "puppetmaster::onpremise"
53
+ @node.klass "puppetmaster"
54
54
  when "munin"
55
- @node.klass "munin::master::onpremise" if @options.has_key?(:master)
56
- @node.klass "munin::node::onpremise" if @options.has_key?(:node)
55
+ @node.klass "munin::master" if @options.has_key?(:master)
56
+ @node.klass "munin::node" if @options.has_key?(:node)
57
57
  when "queue"
58
- @node.klass "#{@type.to_s}server::onpremise"
58
+ @node.klass "#{@type.to_s}server"
59
59
  when "app"
60
- @node.klass "#{@type.to_s}server::onpremise"
60
+ @node.klass "#{@type.to_s}server"
61
61
  when "worker"
62
- @node.klass "#{@type.to_s}server::onpremise"
62
+ @node.klass "#{@type.to_s}server"
63
63
  when "web"
64
- @node.klass "#{@type.to_s}server::onpremise"
64
+ @node.klass "#{@type.to_s}server"
65
65
  when "push"
66
- @node.klass "#{@type.to_s}server::onpremise"
66
+ @node.klass "#{@type.to_s}server"
67
67
  when "search"
68
- @node.klass "#{@type.to_s}server::onpremise"
68
+ @node.klass "#{@type.to_s}server"
69
69
  when "file"
70
- @node.klass "#{@type.to_s}server::onpremise"
70
+ @node.klass "#{@type.to_s}server"
71
71
  when "cache"
72
- @node.klass "#{@type.to_s}server::onpremise"
72
+ @node.klass "#{@type.to_s}server"
73
73
  when "scheduler"
74
74
  @node.klass "#{@type.to_s}server"
75
75
  end
@@ -1,3 +1,3 @@
1
1
  module ClassifyCluster
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
@@ -39,7 +39,7 @@ module ClassifyCluster
39
39
  node.classes.each do |klass|
40
40
  file.write(output("include #{klass}", :indent => 1))
41
41
  end
42
- file.write(output("include socialcast::onpremise", :indent => 1))
42
+ file.write(output("include socialcast", :indent => 1))
43
43
  file.write(output("}\n"))
44
44
  end
45
45
  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: 3
5
- prerelease: false
4
+ hash: 1
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 8
10
- version: 0.3.8
9
+ - 9
10
+ version: 0.3.9
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: 2011-02-24 00:00:00 -08:00
18
+ date: 2011-03-08 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements: []
132
132
 
133
133
  rubyforge_project: classify_cluster
134
- rubygems_version: 1.3.7
134
+ rubygems_version: 1.5.3
135
135
  signing_key:
136
136
  specification_version: 3
137
137
  summary: Contains several binaries for generating capistrano and puppet configurations