foreman_xen 0.0.5.1 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c4e90c0f194768e19271552a20bc354ba7ad4b0
4
+ data.tar.gz: 4c83c3c6cefafa974ecb2138c731e3a4d363bcee
5
+ SHA512:
6
+ metadata.gz: 02a09d2f06ac452c429d57292875b5d760d85df36629d98b617004cc8ba0e0163f7a294be1a2b2259acecd0ea581ee55bd9c3c62fa43a763d6700090ff12255b
7
+ data.tar.gz: 30b1f01b2bea68a654157c5ee32fd437949d1cab40e319f36588d3aab81528f7fcdd235dfd0b831655a243695961af0e5eced28ee348a55ceb29779b8cdf7a64
@@ -1,6 +1,11 @@
1
1
  module FogExtensions
2
2
  module Xenserver
3
3
  module Server
4
+ extend ActiveSupport::Concern
5
+
6
+
7
+ include ActionView::Helpers::NumberHelper
8
+
4
9
 
5
10
  attr_accessor :memory_min, :memory_max, :custom_template_name, :builtin_template_name
6
11
 
@@ -32,6 +37,10 @@ module FogExtensions
32
37
  power_state
33
38
  end
34
39
 
40
+ def vm_description
41
+ _("%{cpus} CPUs and %{memory} memory") % {:cpus => vcpus_max, :memory => number_to_human_size(memory_max.to_i)}
42
+ end
43
+
35
44
  end
36
45
  end
37
46
  end
@@ -226,6 +226,7 @@ module ForemanXen
226
226
  other_config = template.other_config
227
227
  other_config.delete 'disks'
228
228
  other_config.delete 'default_template'
229
+ other_config['mac_seed'] = SecureRandom.uuid
229
230
  end
230
231
  vm = client.servers.new :name => args[:name],
231
232
  :affinity => host,
@@ -1,3 +1,3 @@
1
1
  module ForemanXen
2
- VERSION = "0.0.5.1"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,127 +1,119 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: foreman_xen
3
- version: !ruby/object:Gem::Version
4
- hash: 89
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 5
10
- - 1
11
- version: 0.0.5.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.6
12
5
  platform: ruby
13
- authors:
14
- - "Pavel Nemirovsky, Micha\xC5\x82 Piotrowski, Avi Israeli"
6
+ authors:
7
+ - Pavel Nemirovsky, Michał Piotrowski, Avi Israeli
15
8
  autorequire:
16
9
  bindir: bin
17
10
  cert_chain: []
18
-
19
- date: 2014-12-30 00:00:00 +00:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
23
14
  name: rake
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
28
17
  - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
34
20
  type: :development
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: fog
38
21
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: deface
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "<"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: fog
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
42
45
  - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
48
  type: :runtime
49
- version_requirements: *id002
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
50
55
  description: Provision and manage XEN Server from Foreman.
51
- email:
56
+ email:
52
57
  - operations@oovoo.com
53
58
  executables: []
54
-
55
59
  extensions: []
56
-
57
60
  extra_rdoc_files: []
58
-
59
- files:
60
- - app/models/concerns/foreman_xen/host_helper_extensions.rb
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - Rakefile
65
+ - app/controllers/foreman_xen/snapshots_controller.rb
61
66
  - app/models/concerns/fog_extensions/xenserver/server.rb
67
+ - app/models/concerns/foreman_xen/host_helper_extensions.rb
62
68
  - app/models/foreman_xen/xenserver.rb
63
- - app/views/compute_resources/show/_xenserver.html.erb
64
- - app/views/compute_resources/form/_xenserver.html.erb
69
+ - app/overrides/hosts/show/snapshot_override.html.erb.deface
70
+ - app/overrides/hosts/show/snapshot_override_legacy.html.erb.deface
65
71
  - app/views/api/v1/compute_resources/xenserver.json.rabl
66
72
  - app/views/api/v2/compute_resources/xenserver.json.rabl
67
- - app/views/foreman_xen/snapshots/show.html.erb
68
- - app/views/foreman_xen/snapshots/new.html.erb
69
- - app/views/compute_resources_vms/show/_xenserver.html.erb
70
- - app/views/compute_resources_vms/index/_xenserver.html.erb
73
+ - app/views/compute_resources/form/_xenserver.html.erb
74
+ - app/views/compute_resources/show/_xenserver.html.erb
75
+ - app/views/compute_resources_vms/form/_network.html.erb
76
+ - app/views/compute_resources_vms/form/_templates.html.erb
71
77
  - app/views/compute_resources_vms/form/_volume.html.erb
72
78
  - app/views/compute_resources_vms/form/_xenserver.html.erb
73
- - app/views/compute_resources_vms/form/_templates.html.erb
74
79
  - app/views/compute_resources_vms/form/_xenstore.html.erb
75
- - app/views/compute_resources_vms/form/_network.html.erb
76
- - app/controllers/foreman_xen/snapshots_controller.rb
77
- - app/overrides/hosts/show/snapshot_override_legacy.html.erb.deface
78
- - app/overrides/hosts/show/snapshot_override.html.erb.deface
80
+ - app/views/compute_resources_vms/index/_xenserver.html.erb
81
+ - app/views/compute_resources_vms/show/_xenserver.html.erb
82
+ - app/views/foreman_xen/snapshots/new.html.erb
83
+ - app/views/foreman_xen/snapshots/show.html.erb
79
84
  - config/routes.rb
80
- - lib/tasks/foreman_xen_tasks.rake
81
- - lib/foreman_xen/vnc_tunnel.rb
85
+ - lib/foreman_xen.rb
82
86
  - lib/foreman_xen/engine.rb
83
87
  - lib/foreman_xen/version.rb
84
- - lib/foreman_xen.rb
88
+ - lib/foreman_xen/vnc_tunnel.rb
89
+ - lib/tasks/foreman_xen_tasks.rake
85
90
  - locale/Makefile
86
- - LICENSE
87
- - Rakefile
88
- - README.md
89
- - test/test_helper.rb
90
91
  - test/foreman_xen_test.rb
91
- has_rdoc: true
92
+ - test/test_helper.rb
92
93
  homepage: http://github.com/theforeman/foreman-xen
93
- licenses:
94
+ licenses:
94
95
  - GPL-3
96
+ metadata: {}
95
97
  post_install_message:
96
98
  rdoc_options: []
97
-
98
- require_paths:
99
+ require_paths:
99
100
  - lib
100
- required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
103
  - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
109
- required_rubygems_version: !ruby/object:Gem::Requirement
110
- none: false
111
- requirements:
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
112
108
  - - ">="
113
- - !ruby/object:Gem::Version
114
- hash: 3
115
- segments:
116
- - 0
117
- version: "0"
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
118
111
  requirements: []
119
-
120
112
  rubyforge_project:
121
- rubygems_version: 1.3.7
113
+ rubygems_version: 2.2.2
122
114
  signing_key:
123
- specification_version: 3
115
+ specification_version: 4
124
116
  summary: Provision and manage XEN Server from Foreman
125
- test_files:
126
- - test/test_helper.rb
117
+ test_files:
127
118
  - test/foreman_xen_test.rb
119
+ - test/test_helper.rb