tengine_resource 0.5.15 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -27
- data/Gemfile.lock +60 -73
- data/README.rdoc +2 -2
- data/bin/create_indexes_for_tengine_resource +18 -0
- data/lib/tengine/resource/config/resource.rb +0 -3
- data/lib/tengine/resource/credential.rb +16 -17
- data/lib/tengine/resource/net_ssh.rb +22 -10
- data/lib/tengine/resource/physical_server.rb +8 -0
- data/lib/tengine/resource/provider.rb +206 -35
- data/lib/tengine/resource/server.rb +3 -3
- data/lib/tengine/resource/virtual_server.rb +1 -1
- data/lib/tengine/resource/virtual_server_image.rb +8 -8
- data/lib/tengine/resource/virtual_server_type.rb +2 -2
- data/lib/tengine/resource/watcher.rb +39 -9
- data/tmp/.gitkeep +0 -0
- metadata +92 -141
- data/.document +0 -5
- data/.rspec +0 -1
- data/Rakefile +0 -42
- data/VERSION +0 -1
- data/config/.gitignore +0 -2
- data/lib/tengine/resource/credential/ec2.rb +0 -5
- data/lib/tengine/resource/credential/ec2/dummy.rb +0 -148
- data/lib/tengine/resource/credential/ec2/launch_options.rb +0 -179
- data/lib/tengine/resource/provider/ec2.rb +0 -187
- data/lib/tengine/resource/provider/wakame.rb +0 -638
- data/spec/fixtures/goku_at_ec2_ap_northeast.rb +0 -177
- data/spec/mongoid.yml +0 -35
- data/spec/mongoid_en.yml +0 -48
- data/spec/spec_helper.rb +0 -43
- data/spec/support/ec2.rb +0 -129
- data/spec/support/mongo_index_key_log.rb +0 -91
- data/spec/tengine/resource/bugfix/watcher_for_wakame_spec.rb +0 -232
- data/spec/tengine/resource/credential_spec.rb +0 -205
- data/spec/tengine/resource/drivers/resource_control_driver_spec.rb +0 -84
- data/spec/tengine/resource/net_ssh_spec.rb +0 -148
- data/spec/tengine/resource/physical_server_spec.rb +0 -47
- data/spec/tengine/resource/provider/ec2_spec.rb +0 -473
- data/spec/tengine/resource/provider/test_files/describe_host_nodes.json +0 -22
- data/spec/tengine/resource/provider/test_files/describe_images.json +0 -23
- data/spec/tengine/resource/provider/test_files/describe_instance_specs.json +0 -23
- data/spec/tengine/resource/provider/test_files/describe_instances.json +0 -56
- data/spec/tengine/resource/provider/test_files/run_instances.json +0 -30
- data/spec/tengine/resource/provider/test_files/terminate_instances.json +0 -3
- data/spec/tengine/resource/provider/wakame/00_describe_host_nodes_0_physical_servers.json +0 -8
- data/spec/tengine/resource/provider/wakame/01_describe_host_nodes_10_physical_servers.json +0 -139
- data/spec/tengine/resource/provider/wakame/02_describe_host_nodes_60_physical_servers.json +0 -795
- data/spec/tengine/resource/provider/wakame/10_describe_instances_0_virtual_servers.json +0 -8
- data/spec/tengine/resource/provider/wakame/11_describe_instances_10_virtual_servers.json +0 -469
- data/spec/tengine/resource/provider/wakame/12_describe_instances_after_run_instances.json +0 -280
- data/spec/tengine/resource/provider/wakame/13_describe_instances_after_terminate_instances.json +0 -279
- data/spec/tengine/resource/provider/wakame/20_describe_images_0_virtual_server_images.json +0 -8
- data/spec/tengine/resource/provider/wakame/21_describe_images_5_virtual_server_images.json +0 -84
- data/spec/tengine/resource/provider/wakame/22_describe_images_60_virtual_server_images.json +0 -856
- data/spec/tengine/resource/provider/wakame/30_describe_instance_specs_0_virtual_server_specs.json +0 -8
- data/spec/tengine/resource/provider/wakame/31_describe_instance_specs_4_virtual_server_specs.json +0 -66
- data/spec/tengine/resource/provider/wakame/40_run_instances_0_virtual_servers.json +0 -1
- data/spec/tengine/resource/provider/wakame/41_run_instances_1_virtual_servers.json +0 -22
- data/spec/tengine/resource/provider/wakame/42_run_instances_5_virtual_servers.json +0 -106
- data/spec/tengine/resource/provider/wakame/50_terminate_instances_0_virtual_servers.json +0 -1
- data/spec/tengine/resource/provider/wakame/51_terminate_instances_3_virtual_servers.json +0 -5
- data/spec/tengine/resource/provider/wakame/sync_physical_servers_spec.rb +0 -114
- data/spec/tengine/resource/provider/wakame/sync_virtual_server_images_spec.rb +0 -116
- data/spec/tengine/resource/provider/wakame/sync_virtual_server_types_spec.rb +0 -116
- data/spec/tengine/resource/provider/wakame/sync_virtual_servers_spec.rb +0 -216
- data/spec/tengine/resource/provider/wakame_api_spec.rb +0 -319
- data/spec/tengine/resource/provider/wakame_spec.rb +0 -339
- data/spec/tengine/resource/provider_spec.rb +0 -252
- data/spec/tengine/resource/server_spec.rb +0 -195
- data/spec/tengine/resource/test_files/.gitignore +0 -6
- data/spec/tengine/resource/test_files/00_describe_host_nodes_0_physical_servers.json +0 -8
- data/spec/tengine/resource/test_files/01_describe_host_nodes_10_physical_servers.json +0 -139
- data/spec/tengine/resource/test_files/02_describe_host_nodes_60_physical_servers.json +0 -795
- data/spec/tengine/resource/test_files/10_describe_instances_0_virtual_servers.json +0 -8
- data/spec/tengine/resource/test_files/11_describe_instances_10_virtual_servers.json +0 -469
- data/spec/tengine/resource/test_files/12_describe_instances_after_run_instances.json +0 -280
- data/spec/tengine/resource/test_files/13_describe_instances_after_terminate_instances.json +0 -279
- data/spec/tengine/resource/test_files/14_describe_instances_after_run_1_instance.json +0 -55
- data/spec/tengine/resource/test_files/20_describe_images_0_virtual_server_images.json +0 -8
- data/spec/tengine/resource/test_files/21_describe_images_5_virtual_server_images.json +0 -84
- data/spec/tengine/resource/test_files/22_describe_images_60_virtual_server_images.json +0 -856
- data/spec/tengine/resource/test_files/30_describe_instance_specs_0_virtual_server_specs.json +0 -8
- data/spec/tengine/resource/test_files/31_describe_instance_specs_4_virtual_server_specs.json +0 -66
- data/spec/tengine/resource/test_files/40_run_instances_0_virtual_servers.json +0 -1
- data/spec/tengine/resource/test_files/41_run_instances_1_virtual_servers.json +0 -22
- data/spec/tengine/resource/test_files/42_run_instances_5_virtual_servers.json +0 -106
- data/spec/tengine/resource/test_files/43_run_instances_1_virtual_servers_without_aws_availability_zone.json +0 -22
- data/spec/tengine/resource/test_files/50_terminate_instances_0_virtual_servers.json +0 -1
- data/spec/tengine/resource/test_files/51_terminate_instances_3_virtual_servers.json +0 -5
- data/spec/tengine/resource/virtual_server_image_spec.rb +0 -94
- data/spec/tengine/resource/virtual_server_spec.rb +0 -116
- data/spec/tengine/resource/virtual_server_type_spec.rb +0 -4
- data/spec/tengine/resource/watcher_spec.rb +0 -1027
- data/spec/tengine_resource_spec.rb +0 -5
- data/tengine_resource.gemspec +0 -172
- data/tmp/log/.gitignore +0 -1
@@ -24,9 +24,9 @@ class Tengine::Resource::Server
|
|
24
24
|
validates :name, :presence => true, :format => BASE_NAME.options
|
25
25
|
|
26
26
|
validates :name, :uniqueness => {:scope => :provider_id}, :if => :need_to_validate_name_uniqueness?
|
27
|
-
index
|
27
|
+
index({ name: 1, provider_id: 1 }, { unique: 1 })
|
28
28
|
|
29
|
-
index
|
29
|
+
index status: 1, _type: 1
|
30
30
|
|
31
31
|
has_many :guest_servers, :class_name => "Tengine::Resource::VirtualServer", :inverse_of => :host_server
|
32
32
|
|
@@ -34,7 +34,7 @@ class Tengine::Resource::Server
|
|
34
34
|
|
35
35
|
class << self
|
36
36
|
def find_or_create_by_name!(attrs = {}, &block)
|
37
|
-
result = Tengine::Resource::Server.
|
37
|
+
result = Tengine::Resource::Server.where({:name => attrs[:name]}).first
|
38
38
|
result ||= self.create!(attrs)
|
39
39
|
result
|
40
40
|
end
|
@@ -9,7 +9,7 @@ class Tengine::Resource::VirtualServer < Tengine::Resource::Server
|
|
9
9
|
:class_name => "Tengine::Resource::Provider"
|
10
10
|
|
11
11
|
validates_uniqueness_of :provided_id, :scope => :provider_id, :unless => :ignore_provided_id_uniqueness
|
12
|
-
index
|
12
|
+
index({ provided_id: 1, provider_id: 1 }, { unique: true })
|
13
13
|
|
14
14
|
## launch_modeに関する実装
|
15
15
|
|
@@ -15,18 +15,18 @@ class Tengine::Resource::VirtualServerImage
|
|
15
15
|
:class_name => "Tengine::Resource::Provider"
|
16
16
|
|
17
17
|
validates :name, :presence => true, :uniqueness => true, :format => BASE_NAME.options
|
18
|
-
index :
|
18
|
+
index({ name: 1 }, { unique: true })
|
19
19
|
|
20
|
-
index
|
21
|
-
index
|
22
|
-
index
|
23
|
-
index
|
24
|
-
index
|
25
|
-
index
|
20
|
+
index description: 1
|
21
|
+
index description: -1
|
22
|
+
index provided_description: 1
|
23
|
+
index provided_description: -1
|
24
|
+
index provided_id: 1
|
25
|
+
index provided_id: -1
|
26
26
|
|
27
27
|
class << self
|
28
28
|
def find_or_create_by_name!(attrs = {}, &block)
|
29
|
-
result = self.
|
29
|
+
result = self.where({:name => attrs[:name]}).first
|
30
30
|
result ||= self.create!(attrs)
|
31
31
|
result
|
32
32
|
end
|
@@ -13,9 +13,9 @@ class Tengine::Resource::VirtualServerType
|
|
13
13
|
field :properties, :type => Hash
|
14
14
|
map_yaml_accessor :properties
|
15
15
|
|
16
|
-
|
16
|
+
belongs_to :provider, :inverse_of => :virtual_server_types, :index => true,
|
17
17
|
:class_name => "Tengine::Resource::Provider"
|
18
18
|
|
19
19
|
validates :provided_id, :presence => true, :uniqueness => {:scope => :provider_id}
|
20
|
-
index
|
20
|
+
index({provider_id: 1, provided_id: 1}, {unique: true})
|
21
21
|
end
|
@@ -9,6 +9,9 @@ require 'tengine/core/mongoid_fix'
|
|
9
9
|
|
10
10
|
class Tengine::Resource::Watcher
|
11
11
|
|
12
|
+
class ConfigurationError < StandardError
|
13
|
+
end
|
14
|
+
|
12
15
|
attr_reader :config, :pid
|
13
16
|
|
14
17
|
def initialize(argv = [])
|
@@ -76,30 +79,33 @@ class Tengine::Resource::Watcher
|
|
76
79
|
Mongoid.observers = Tengine::Resource::Observer
|
77
80
|
Mongoid.instantiate_observers
|
78
81
|
|
79
|
-
Mongoid.
|
80
|
-
|
82
|
+
Mongoid.configure do |c|
|
83
|
+
c.send :load_configuration, @config[:db]
|
84
|
+
end
|
81
85
|
|
82
86
|
EM.run do
|
83
87
|
sender.wait_for_connection do
|
84
|
-
providers =
|
88
|
+
providers = find_providers
|
85
89
|
providers.each do |provider|
|
86
|
-
|
87
90
|
provider.retry_on_error = true if provider.respond_to?(:retry_on_error=)
|
88
91
|
# polling_intervalが 0 以下の場合は、問い合わせを行わない
|
89
92
|
if (polling_interval = provider.polling_interval) > 0
|
90
93
|
# 仮想サーバタイプの監視
|
91
|
-
provider.
|
92
|
-
|
94
|
+
provider.synchronize_virtual_server_types
|
95
|
+
name = "#{provider.name}@#{self.class}"
|
96
|
+
# Tengine::Core::Mutexをnameに対して固有のObjectIdを設定します。
|
97
|
+
Tengine::Core::Mutex::Mutex.add_static_bson_objectid(name, provider.id)
|
98
|
+
mutex = Tengine::Core::Mutex.new(name, provider.polling_interval)
|
93
99
|
@periodic = EM.add_periodic_timer(provider.polling_interval) do
|
94
100
|
mutex.synchronize do
|
95
101
|
# 物理サーバの監視
|
96
|
-
provider.
|
102
|
+
provider.synchronize_physical_servers
|
97
103
|
mutex.heartbeat
|
98
104
|
# 仮想サーバの監視
|
99
|
-
provider.
|
105
|
+
provider.synchronize_virtual_servers
|
100
106
|
mutex.heartbeat
|
101
107
|
# 仮想サーバイメージの監視
|
102
|
-
provider.
|
108
|
+
provider.synchronize_virtual_server_images
|
103
109
|
end
|
104
110
|
end
|
105
111
|
end
|
@@ -115,6 +121,30 @@ class Tengine::Resource::Watcher
|
|
115
121
|
end
|
116
122
|
end
|
117
123
|
|
124
|
+
def find_providers
|
125
|
+
providers = Tengine::Resource::Provider.all
|
126
|
+
begin
|
127
|
+
result = providers.to_a
|
128
|
+
raise ConfigurationError, "no provider found" if result.empty?
|
129
|
+
return result
|
130
|
+
rescue NameError => e
|
131
|
+
raise e unless e.message =~ /uninitialized constant/
|
132
|
+
documents = Mongoid.default_session.collections.
|
133
|
+
detect{|c| c.name.to_s == Tengine::Resource::Provider.collection_name.to_s}.find
|
134
|
+
types = documents.map{|d| d['_type']}
|
135
|
+
undefined_type_names = types.select do |t|
|
136
|
+
begin
|
137
|
+
t.constantize
|
138
|
+
false
|
139
|
+
rescue Exception
|
140
|
+
true
|
141
|
+
end
|
142
|
+
end
|
143
|
+
raise ConfigurationError, "provider class not found: " << undefined_type_names.join(", ")
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
|
118
148
|
extend Tengine::Core::MethodTraceable
|
119
149
|
method_trace(*instance_methods(false))
|
120
150
|
|
data/tmp/.gitkeep
ADDED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tengine_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,248 +14,199 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-12-19 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: tengine_support
|
21
|
-
requirement:
|
21
|
+
requirement: !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.1.0
|
27
27
|
type: :runtime
|
28
28
|
prerelease: false
|
29
|
-
version_requirements:
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: tengine_core
|
32
|
-
requirement: &2167693400 !ruby/object:Gem::Requirement
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
30
|
none: false
|
34
31
|
requirements:
|
35
32
|
- - ~>
|
36
33
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
38
|
-
type: :runtime
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: *2167693400
|
34
|
+
version: 1.1.0
|
41
35
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement:
|
36
|
+
name: tengine_core
|
37
|
+
requirement: !ruby/object:Gem::Requirement
|
44
38
|
none: false
|
45
39
|
requirements:
|
46
40
|
- - ~>
|
47
41
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
42
|
+
version: 1.1.0
|
49
43
|
type: :runtime
|
50
44
|
prerelease: false
|
51
|
-
version_requirements:
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: right_aws
|
54
|
-
requirement: &2167691640 !ruby/object:Gem::Requirement
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
46
|
none: false
|
56
47
|
requirements:
|
57
48
|
- - ~>
|
58
49
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
60
|
-
type: :runtime
|
61
|
-
prerelease: false
|
62
|
-
version_requirements: *2167691640
|
50
|
+
version: 1.1.0
|
63
51
|
- !ruby/object:Gem::Dependency
|
64
52
|
name: net-ssh
|
65
|
-
requirement:
|
53
|
+
requirement: !ruby/object:Gem::Requirement
|
66
54
|
none: false
|
67
55
|
requirements:
|
68
56
|
- - ~>
|
69
57
|
- !ruby/object:Gem::Version
|
70
|
-
version: 2.2
|
58
|
+
version: 2.5.2
|
71
59
|
type: :runtime
|
72
60
|
prerelease: false
|
73
|
-
version_requirements:
|
74
|
-
- !ruby/object:Gem::Dependency
|
75
|
-
name: rspec
|
76
|
-
requirement: &2167687400 !ruby/object:Gem::Requirement
|
61
|
+
version_requirements: !ruby/object:Gem::Requirement
|
77
62
|
none: false
|
78
63
|
requirements:
|
79
64
|
- - ~>
|
80
65
|
- !ruby/object:Gem::Version
|
81
|
-
version: 2.
|
66
|
+
version: 2.5.2
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: bundler
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
82
75
|
type: :development
|
83
76
|
prerelease: false
|
84
|
-
version_requirements:
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
85
83
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
87
|
-
requirement:
|
84
|
+
name: rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
88
86
|
none: false
|
89
87
|
requirements:
|
90
88
|
- - ~>
|
91
89
|
- !ruby/object:Gem::Version
|
92
|
-
version:
|
90
|
+
version: 0.9.2.2
|
93
91
|
type: :development
|
94
92
|
prerelease: false
|
95
|
-
version_requirements:
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 0.9.2.2
|
96
99
|
- !ruby/object:Gem::Dependency
|
97
|
-
name:
|
98
|
-
requirement:
|
100
|
+
name: rspec
|
101
|
+
requirement: !ruby/object:Gem::Requirement
|
99
102
|
none: false
|
100
103
|
requirements:
|
101
104
|
- - ~>
|
102
105
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
106
|
+
version: 2.10.0
|
104
107
|
type: :development
|
105
108
|
prerelease: false
|
106
|
-
version_requirements:
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ~>
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 2.10.0
|
107
115
|
- !ruby/object:Gem::Dependency
|
108
|
-
name:
|
109
|
-
requirement:
|
116
|
+
name: yard
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
110
118
|
none: false
|
111
119
|
requirements:
|
112
120
|
- - ~>
|
113
121
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
122
|
+
version: 0.8.1
|
115
123
|
type: :development
|
116
124
|
prerelease: false
|
117
|
-
version_requirements:
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ~>
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.8.1
|
118
131
|
- !ruby/object:Gem::Dependency
|
119
|
-
name:
|
120
|
-
requirement:
|
132
|
+
name: simplecov
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
121
134
|
none: false
|
122
135
|
requirements:
|
123
136
|
- - ~>
|
124
137
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
138
|
+
version: 0.6.4
|
126
139
|
type: :development
|
127
140
|
prerelease: false
|
128
|
-
version_requirements:
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: simplecov
|
131
|
-
requirement: &2167683460 !ruby/object:Gem::Requirement
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
132
142
|
none: false
|
133
143
|
requirements:
|
134
144
|
- - ~>
|
135
145
|
- !ruby/object:Gem::Version
|
136
|
-
version: 0.
|
146
|
+
version: 0.6.4
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: autotest
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
137
155
|
type: :development
|
138
156
|
prerelease: false
|
139
|
-
version_requirements:
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ! '>='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: '0'
|
140
163
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
142
|
-
requirement:
|
164
|
+
name: rdiscount
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
143
166
|
none: false
|
144
167
|
requirements:
|
145
|
-
- -
|
168
|
+
- - ! '>='
|
146
169
|
- !ruby/object:Gem::Version
|
147
|
-
version:
|
170
|
+
version: '0'
|
148
171
|
type: :development
|
149
172
|
prerelease: false
|
150
|
-
version_requirements:
|
173
|
+
version_requirements: !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ! '>='
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '0'
|
151
179
|
description: tengine_resource provides physical/virtual server management
|
152
180
|
email: tengine-info@groovenauts.jp
|
153
181
|
executables:
|
154
182
|
- tengine_resource_watchd
|
183
|
+
- create_indexes_for_tengine_resource
|
155
184
|
extensions: []
|
156
185
|
extra_rdoc_files:
|
157
186
|
- README.rdoc
|
158
187
|
files:
|
159
|
-
- .document
|
160
|
-
- .rspec
|
161
188
|
- Gemfile
|
162
189
|
- Gemfile.lock
|
163
190
|
- README.rdoc
|
164
|
-
-
|
165
|
-
- VERSION
|
191
|
+
- bin/create_indexes_for_tengine_resource
|
166
192
|
- bin/tengine_resource_watchd
|
167
|
-
- config/.gitignore
|
168
193
|
- config/watchd.yml.erb.example
|
169
|
-
- lib/tengine/resource.rb
|
170
|
-
- lib/tengine/resource/config.rb
|
171
194
|
- lib/tengine/resource/config/resource.rb
|
195
|
+
- lib/tengine/resource/config.rb
|
172
196
|
- lib/tengine/resource/credential.rb
|
173
|
-
- lib/tengine/resource/credential/ec2.rb
|
174
|
-
- lib/tengine/resource/credential/ec2/dummy.rb
|
175
|
-
- lib/tengine/resource/credential/ec2/launch_options.rb
|
176
197
|
- lib/tengine/resource/drivers/resource_control_driver.rb
|
177
198
|
- lib/tengine/resource/net_ssh.rb
|
178
199
|
- lib/tengine/resource/observer.rb
|
179
200
|
- lib/tengine/resource/physical_server.rb
|
180
201
|
- lib/tengine/resource/provider.rb
|
181
|
-
- lib/tengine/resource/provider/ec2.rb
|
182
|
-
- lib/tengine/resource/provider/wakame.rb
|
183
202
|
- lib/tengine/resource/server.rb
|
184
203
|
- lib/tengine/resource/virtual_server.rb
|
185
204
|
- lib/tengine/resource/virtual_server_image.rb
|
186
205
|
- lib/tengine/resource/virtual_server_type.rb
|
187
206
|
- lib/tengine/resource/watcher.rb
|
207
|
+
- lib/tengine/resource.rb
|
188
208
|
- lib/tengine_resource.rb
|
189
|
-
-
|
190
|
-
- spec/mongoid.yml
|
191
|
-
- spec/mongoid_en.yml
|
192
|
-
- spec/spec_helper.rb
|
193
|
-
- spec/support/ec2.rb
|
194
|
-
- spec/support/mongo_index_key_log.rb
|
195
|
-
- spec/tengine/resource/bugfix/watcher_for_wakame_spec.rb
|
196
|
-
- spec/tengine/resource/credential_spec.rb
|
197
|
-
- spec/tengine/resource/drivers/resource_control_driver_spec.rb
|
198
|
-
- spec/tengine/resource/net_ssh_spec.rb
|
199
|
-
- spec/tengine/resource/physical_server_spec.rb
|
200
|
-
- spec/tengine/resource/provider/ec2_spec.rb
|
201
|
-
- spec/tengine/resource/provider/test_files/describe_host_nodes.json
|
202
|
-
- spec/tengine/resource/provider/test_files/describe_images.json
|
203
|
-
- spec/tengine/resource/provider/test_files/describe_instance_specs.json
|
204
|
-
- spec/tengine/resource/provider/test_files/describe_instances.json
|
205
|
-
- spec/tengine/resource/provider/test_files/run_instances.json
|
206
|
-
- spec/tengine/resource/provider/test_files/terminate_instances.json
|
207
|
-
- spec/tengine/resource/provider/wakame/00_describe_host_nodes_0_physical_servers.json
|
208
|
-
- spec/tengine/resource/provider/wakame/01_describe_host_nodes_10_physical_servers.json
|
209
|
-
- spec/tengine/resource/provider/wakame/02_describe_host_nodes_60_physical_servers.json
|
210
|
-
- spec/tengine/resource/provider/wakame/10_describe_instances_0_virtual_servers.json
|
211
|
-
- spec/tengine/resource/provider/wakame/11_describe_instances_10_virtual_servers.json
|
212
|
-
- spec/tengine/resource/provider/wakame/12_describe_instances_after_run_instances.json
|
213
|
-
- spec/tengine/resource/provider/wakame/13_describe_instances_after_terminate_instances.json
|
214
|
-
- spec/tengine/resource/provider/wakame/20_describe_images_0_virtual_server_images.json
|
215
|
-
- spec/tengine/resource/provider/wakame/21_describe_images_5_virtual_server_images.json
|
216
|
-
- spec/tengine/resource/provider/wakame/22_describe_images_60_virtual_server_images.json
|
217
|
-
- spec/tengine/resource/provider/wakame/30_describe_instance_specs_0_virtual_server_specs.json
|
218
|
-
- spec/tengine/resource/provider/wakame/31_describe_instance_specs_4_virtual_server_specs.json
|
219
|
-
- spec/tengine/resource/provider/wakame/40_run_instances_0_virtual_servers.json
|
220
|
-
- spec/tengine/resource/provider/wakame/41_run_instances_1_virtual_servers.json
|
221
|
-
- spec/tengine/resource/provider/wakame/42_run_instances_5_virtual_servers.json
|
222
|
-
- spec/tengine/resource/provider/wakame/50_terminate_instances_0_virtual_servers.json
|
223
|
-
- spec/tengine/resource/provider/wakame/51_terminate_instances_3_virtual_servers.json
|
224
|
-
- spec/tengine/resource/provider/wakame/sync_physical_servers_spec.rb
|
225
|
-
- spec/tengine/resource/provider/wakame/sync_virtual_server_images_spec.rb
|
226
|
-
- spec/tengine/resource/provider/wakame/sync_virtual_server_types_spec.rb
|
227
|
-
- spec/tengine/resource/provider/wakame/sync_virtual_servers_spec.rb
|
228
|
-
- spec/tengine/resource/provider/wakame_api_spec.rb
|
229
|
-
- spec/tengine/resource/provider/wakame_spec.rb
|
230
|
-
- spec/tengine/resource/provider_spec.rb
|
231
|
-
- spec/tengine/resource/server_spec.rb
|
232
|
-
- spec/tengine/resource/test_files/.gitignore
|
233
|
-
- spec/tengine/resource/test_files/00_describe_host_nodes_0_physical_servers.json
|
234
|
-
- spec/tengine/resource/test_files/01_describe_host_nodes_10_physical_servers.json
|
235
|
-
- spec/tengine/resource/test_files/02_describe_host_nodes_60_physical_servers.json
|
236
|
-
- spec/tengine/resource/test_files/10_describe_instances_0_virtual_servers.json
|
237
|
-
- spec/tengine/resource/test_files/11_describe_instances_10_virtual_servers.json
|
238
|
-
- spec/tengine/resource/test_files/12_describe_instances_after_run_instances.json
|
239
|
-
- spec/tengine/resource/test_files/13_describe_instances_after_terminate_instances.json
|
240
|
-
- spec/tengine/resource/test_files/14_describe_instances_after_run_1_instance.json
|
241
|
-
- spec/tengine/resource/test_files/20_describe_images_0_virtual_server_images.json
|
242
|
-
- spec/tengine/resource/test_files/21_describe_images_5_virtual_server_images.json
|
243
|
-
- spec/tengine/resource/test_files/22_describe_images_60_virtual_server_images.json
|
244
|
-
- spec/tengine/resource/test_files/30_describe_instance_specs_0_virtual_server_specs.json
|
245
|
-
- spec/tengine/resource/test_files/31_describe_instance_specs_4_virtual_server_specs.json
|
246
|
-
- spec/tengine/resource/test_files/40_run_instances_0_virtual_servers.json
|
247
|
-
- spec/tengine/resource/test_files/41_run_instances_1_virtual_servers.json
|
248
|
-
- spec/tengine/resource/test_files/42_run_instances_5_virtual_servers.json
|
249
|
-
- spec/tengine/resource/test_files/43_run_instances_1_virtual_servers_without_aws_availability_zone.json
|
250
|
-
- spec/tengine/resource/test_files/50_terminate_instances_0_virtual_servers.json
|
251
|
-
- spec/tengine/resource/test_files/51_terminate_instances_3_virtual_servers.json
|
252
|
-
- spec/tengine/resource/virtual_server_image_spec.rb
|
253
|
-
- spec/tengine/resource/virtual_server_spec.rb
|
254
|
-
- spec/tengine/resource/virtual_server_type_spec.rb
|
255
|
-
- spec/tengine/resource/watcher_spec.rb
|
256
|
-
- spec/tengine_resource_spec.rb
|
257
|
-
- tengine_resource.gemspec
|
258
|
-
- tmp/log/.gitignore
|
209
|
+
- tmp/.gitkeep
|
259
210
|
homepage: http://github.com/tengine/tengine_resource
|
260
211
|
licenses:
|
261
212
|
- MPL2.0/LGPLv3
|
@@ -271,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
271
222
|
version: '0'
|
272
223
|
segments:
|
273
224
|
- 0
|
274
|
-
hash:
|
225
|
+
hash: 3643853348357995462
|
275
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
227
|
none: false
|
277
228
|
requirements:
|
@@ -280,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
280
231
|
version: '0'
|
281
232
|
requirements: []
|
282
233
|
rubyforge_project:
|
283
|
-
rubygems_version: 1.8.
|
234
|
+
rubygems_version: 1.8.23
|
284
235
|
signing_key:
|
285
236
|
specification_version: 3
|
286
237
|
summary: tengine_resource provides physical/virtual server management
|