foreman_fog_proxmox 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of foreman_fog_proxmox might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +24 -12
- data/app/assets/javascripts/foreman_fog_proxmox/proxmox_compute_resource.js +26 -0
- data/app/assets/javascripts/foreman_fog_proxmox/proxmox_vm.js +92 -0
- data/app/assets/javascripts/foreman_fog_proxmox/proxmox_vm_container.js +60 -0
- data/app/assets/javascripts/foreman_fog_proxmox/{proxmox.js → proxmox_vm_server.js} +10 -10
- data/app/controllers/concerns/foreman_fog_proxmox/controller/parameters/compute_resource.rb +1 -1
- data/app/controllers/foreman_fog_proxmox/compute_resources_controller.rb +9 -1
- data/app/helpers/node_dashboard_helper.rb +36 -0
- data/app/helpers/proxmox_compute_selectors_helper.rb +23 -0
- data/app/helpers/proxmox_container_helper.rb +157 -0
- data/app/helpers/proxmox_form_helper.rb +67 -0
- data/app/helpers/{proxmox_compute_helper.rb → proxmox_server_helper.rb} +49 -38
- data/app/helpers/proxmox_vm_helper.rb +86 -0
- data/app/models/concerns/fog_extensions/proxmox/container.rb +57 -0
- data/{test/factories/foreman_fog_proxmox_factories.rb → app/models/concerns/fog_extensions/proxmox/container_config.rb} +16 -13
- data/app/models/concerns/fog_extensions/proxmox/server.rb +8 -2
- data/app/models/foreman_fog_proxmox/proxmox.rb +160 -67
- data/app/overrides/compute_resources_vms/form/add_clone_to_new_vm_compute_detail.rb +24 -0
- data/app/overrides/compute_resources_vms/form/add_vm_type_to_networks_form.rb +32 -0
- data/app/overrides/compute_resources_vms/form/add_vm_type_to_nic_provider_specific_form.rb +25 -0
- data/app/overrides/compute_resources_vms/form/add_vm_type_to_volumes_edit.rb +24 -0
- data/app/overrides/compute_resources_vms/form/add_vm_type_to_volumes_new_volume.rb +24 -0
- data/app/services/foreman_fog_proxmox/node_dashboard/data.rb +37 -0
- data/app/views/compute_resources/form/_proxmox.html.erb +7 -4
- data/app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_form.html.erb +23 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb +25 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_nic_provider_specific_form.html.erb +23 -0
- data/app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb +73 -0
- data/app/views/compute_resources_vms/form/proxmox/_base.html.erb +16 -23
- data/app/views/compute_resources_vms/form/proxmox/_general.html.erb +37 -0
- data/app/views/compute_resources_vms/form/proxmox/_network.html.erb +2 -7
- data/app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb +31 -0
- data/app/views/compute_resources_vms/form/proxmox/container/_config.html.erb +41 -0
- data/app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb +26 -0
- data/app/views/compute_resources_vms/form/proxmox/container/_network.html.erb +25 -0
- data/app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb +25 -0
- data/app/views/compute_resources_vms/form/proxmox/container/_volume_rootfs.html.erb +24 -0
- data/app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb +31 -0
- data/app/views/compute_resources_vms/form/proxmox/{_config.html.erb → server/_config.html.erb} +11 -8
- data/app/views/compute_resources_vms/form/proxmox/server/_network.html.erb +29 -0
- data/app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb +27 -0
- data/app/views/compute_resources_vms/index/_proxmox.html.erb +4 -2
- data/app/views/compute_resources_vms/show/_proxmox.html.erb +9 -2
- data/app/views/dashboard/_foreman_fog_proxmox_widget.erb +4 -2
- data/app/views/images/form/_proxmox.html.erb +17 -0
- data/config/routes.rb +1 -0
- data/lib/foreman_fog_proxmox/engine.rb +10 -3
- data/lib/foreman_fog_proxmox/value.rb +24 -0
- data/lib/foreman_fog_proxmox/version.rb +1 -1
- data/locale/en/foreman_fog_proxmox.edit.po +456 -0
- data/locale/en/foreman_fog_proxmox.po +327 -11
- data/locale/en/foreman_fog_proxmox.po.time_stamp +0 -0
- data/locale/foreman_fog_proxmox.pot +515 -8
- data/locale/fr/foreman_fog_proxmox.edit.po +456 -0
- data/locale/fr/foreman_fog_proxmox.po +327 -11
- data/locale/fr/foreman_fog_proxmox.po.time_stamp +0 -0
- data/test/factories/proxmox_factory.rb +72 -0
- data/test/functional/compute_resources_controller_test.rb +34 -0
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb +205 -0
- data/test/{helpers/proxmox_compute_helper_test.rb → unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb} +36 -28
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb +240 -0
- data/test/unit/foreman_fog_proxmox/proxmox_test.rb +327 -0
- data/test/unit/foreman_fog_proxmox/proxmox_test_helpers.rb +251 -0
- metadata +83 -14
- data/app/views/compute_resources_vms/form/proxmox/_volume.html.erb +0 -23
- data/test/unit/foreman_fog_proxmox_test.rb +0 -11
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_fog_proxmox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tristan Robert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-proxmox
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.5'
|
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.3'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sprockets
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.7'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rdoc
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,24 +105,52 @@ files:
|
|
77
105
|
- LICENSE
|
78
106
|
- README.md
|
79
107
|
- Rakefile
|
80
|
-
- app/assets/javascripts/foreman_fog_proxmox/
|
108
|
+
- app/assets/javascripts/foreman_fog_proxmox/proxmox_compute_resource.js
|
109
|
+
- app/assets/javascripts/foreman_fog_proxmox/proxmox_vm.js
|
110
|
+
- app/assets/javascripts/foreman_fog_proxmox/proxmox_vm_container.js
|
111
|
+
- app/assets/javascripts/foreman_fog_proxmox/proxmox_vm_server.js
|
81
112
|
- app/controllers/concerns/foreman_fog_proxmox/controller/parameters/compute_resource.rb
|
82
113
|
- app/controllers/foreman_fog_proxmox/compute_resources_controller.rb
|
83
|
-
- app/helpers/
|
114
|
+
- app/helpers/node_dashboard_helper.rb
|
84
115
|
- app/helpers/proxmox_compute_selectors_helper.rb
|
116
|
+
- app/helpers/proxmox_container_helper.rb
|
117
|
+
- app/helpers/proxmox_form_helper.rb
|
118
|
+
- app/helpers/proxmox_server_helper.rb
|
119
|
+
- app/helpers/proxmox_vm_helper.rb
|
120
|
+
- app/models/concerns/fog_extensions/proxmox/container.rb
|
121
|
+
- app/models/concerns/fog_extensions/proxmox/container_config.rb
|
85
122
|
- app/models/concerns/fog_extensions/proxmox/disk.rb
|
86
123
|
- app/models/concerns/fog_extensions/proxmox/server.rb
|
87
124
|
- app/models/concerns/fog_extensions/proxmox/server_config.rb
|
88
125
|
- app/models/concerns/fog_extensions/proxmox/volume.rb
|
89
126
|
- app/models/foreman_fog_proxmox/options_select.rb
|
90
127
|
- app/models/foreman_fog_proxmox/proxmox.rb
|
128
|
+
- app/overrides/compute_resources_vms/form/add_clone_to_new_vm_compute_detail.rb
|
129
|
+
- app/overrides/compute_resources_vms/form/add_vm_type_to_networks_form.rb
|
130
|
+
- app/overrides/compute_resources_vms/form/add_vm_type_to_nic_provider_specific_form.rb
|
131
|
+
- app/overrides/compute_resources_vms/form/add_vm_type_to_volumes_edit.rb
|
132
|
+
- app/overrides/compute_resources_vms/form/add_vm_type_to_volumes_new_volume.rb
|
133
|
+
- app/services/foreman_fog_proxmox/node_dashboard/data.rb
|
91
134
|
- app/views/api/v2/compute_resources/proxmox.json.rabl
|
92
135
|
- app/views/compute_resources/form/_proxmox.html.erb
|
93
136
|
- app/views/compute_resources/show/_proxmox.html.erb
|
137
|
+
- app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_form.html.erb
|
138
|
+
- app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb
|
139
|
+
- app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_nic_provider_specific_form.html.erb
|
140
|
+
- app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb
|
94
141
|
- app/views/compute_resources_vms/form/proxmox/_base.html.erb
|
95
|
-
- app/views/compute_resources_vms/form/proxmox/
|
142
|
+
- app/views/compute_resources_vms/form/proxmox/_general.html.erb
|
96
143
|
- app/views/compute_resources_vms/form/proxmox/_network.html.erb
|
97
|
-
- app/views/compute_resources_vms/form/proxmox/
|
144
|
+
- app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb
|
145
|
+
- app/views/compute_resources_vms/form/proxmox/container/_config.html.erb
|
146
|
+
- app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb
|
147
|
+
- app/views/compute_resources_vms/form/proxmox/container/_network.html.erb
|
148
|
+
- app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb
|
149
|
+
- app/views/compute_resources_vms/form/proxmox/container/_volume_rootfs.html.erb
|
150
|
+
- app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb
|
151
|
+
- app/views/compute_resources_vms/form/proxmox/server/_config.html.erb
|
152
|
+
- app/views/compute_resources_vms/form/proxmox/server/_network.html.erb
|
153
|
+
- app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb
|
98
154
|
- app/views/compute_resources_vms/index/_proxmox.html.erb
|
99
155
|
- app/views/compute_resources_vms/show/_proxmox.html.erb
|
100
156
|
- app/views/dashboard/_foreman_fog_proxmox_widget.erb
|
@@ -102,17 +158,26 @@ files:
|
|
102
158
|
- config/routes.rb
|
103
159
|
- lib/foreman_fog_proxmox.rb
|
104
160
|
- lib/foreman_fog_proxmox/engine.rb
|
161
|
+
- lib/foreman_fog_proxmox/value.rb
|
105
162
|
- lib/foreman_fog_proxmox/version.rb
|
106
163
|
- lib/tasks/foreman_fog_proxmox_tasks.rake
|
107
164
|
- locale/Makefile
|
165
|
+
- locale/en/foreman_fog_proxmox.edit.po
|
108
166
|
- locale/en/foreman_fog_proxmox.po
|
167
|
+
- locale/en/foreman_fog_proxmox.po.time_stamp
|
109
168
|
- locale/foreman_fog_proxmox.pot
|
169
|
+
- locale/fr/foreman_fog_proxmox.edit.po
|
110
170
|
- locale/fr/foreman_fog_proxmox.po
|
171
|
+
- locale/fr/foreman_fog_proxmox.po.time_stamp
|
111
172
|
- locale/gemspec.rb
|
112
|
-
- test/factories/
|
113
|
-
- test/
|
173
|
+
- test/factories/proxmox_factory.rb
|
174
|
+
- test/functional/compute_resources_controller_test.rb
|
114
175
|
- test/test_plugin_helper.rb
|
115
|
-
- test/unit/
|
176
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
|
177
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
|
178
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
|
179
|
+
- test/unit/foreman_fog_proxmox/proxmox_test.rb
|
180
|
+
- test/unit/foreman_fog_proxmox/proxmox_test_helpers.rb
|
116
181
|
homepage: https://github.com/tristanrobert/foreman_proxmox
|
117
182
|
licenses:
|
118
183
|
- GPL-3.0
|
@@ -138,7 +203,11 @@ signing_key:
|
|
138
203
|
specification_version: 4
|
139
204
|
summary: Foreman plugin that adds Proxmox VE compute resource using fog-proxmox
|
140
205
|
test_files:
|
141
|
-
- test/helpers/proxmox_compute_helper_test.rb
|
142
206
|
- test/test_plugin_helper.rb
|
143
|
-
- test/factories/
|
144
|
-
- test/
|
207
|
+
- test/factories/proxmox_factory.rb
|
208
|
+
- test/functional/compute_resources_controller_test.rb
|
209
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
|
210
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
|
211
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
|
212
|
+
- test/unit/foreman_fog_proxmox/proxmox_test_helpers.rb
|
213
|
+
- test/unit/foreman_fog_proxmox/proxmox_test.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<%# Copyright 2018 Tristan Robert
|
2
|
-
|
3
|
-
This file is part of ForemanFogProxmox.
|
4
|
-
|
5
|
-
ForemanFogProxmox is free software: you can redistribute it and/or modify
|
6
|
-
it under the terms of the GNU General Public License as published by
|
7
|
-
the Free Software Foundation, either version 3 of the License, or
|
8
|
-
(at your option) any later version.
|
9
|
-
|
10
|
-
ForemanFogProxmox is distributed in the hope that it will be useful,
|
11
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
-
GNU General Public License for more details.
|
14
|
-
|
15
|
-
You should have received a copy of the GNU General Public License
|
16
|
-
along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
|
17
|
-
|
18
|
-
<%= f.hidden_field :volid if !new_vm %>
|
19
|
-
<%= select_f f, :storage, compute_resource.storages, :storage, :storage, { }, :label => _('Storage'), :label_size => "col-md-2", :disabled => !new_vm %>
|
20
|
-
<%= select_f f, :controller, proxmox_controllers_map, :id, :name, { }, :label => _('Controller'), :label_size => "col-md-2", :disabled => !new_vm, :onchange => 'controllerSelected(this)' %>
|
21
|
-
<%= counter_f f, :device, :label => _('Device'), :label_size => "col-md-2", :disabled => !new_vm, :'data-soft-max' => proxmox_max_device(f.object.controller) %>
|
22
|
-
<%= select_f f, :cache, proxmox_caches_map, :id, :name, { }, :label => _('Cache'), :label_size => "col-md-2" %>
|
23
|
-
<%= byte_size_f f, :size, :class => "input-mini", :label => _("Size"), :label_size => "col-md-2", :disabled => !new_vm %>
|