foreman_fog_proxmox 0.11.0 → 0.12.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c5ef621a01ef69d1d270c6feb71f77046a254a556ff257c81633f372debeaad
4
- data.tar.gz: 6d2b6dfcb99730a206f14798f4f7c79e0573eddad591227644d6b37f5e80a40f
3
+ metadata.gz: '087523e5d29519b6e34a2503f98d2baf347f8f0e1bd5c4535ddf1aaa1c77d19c'
4
+ data.tar.gz: 48b81178ef8d3b2d3ea68dba59e029cff30ecb70037a2b55c15b7404142c3d7c
5
5
  SHA512:
6
- metadata.gz: fd050c257f61d7cc967434ae57b7448b63451f6b13919036b2bea7eb43de7acad752c941114b7f7e1798e3274fc1afe7c89f8626444e1c280cfe6d658206ad0e
7
- data.tar.gz: 279158c35f1276fcc29f8a29fa16fe3ab3546943f58de2647dd5938f7ac32cc012f16b14cb5819c9c4706ca1df666c8bfb9f77cb8a056f9f17d6803cf10b0fcf
6
+ metadata.gz: 6ce0f3ac875daa0b7f0e072aac5208b69822d038fef914725bba5913da4284bbf417683215b1c379bca04fbc04606b850178fc3d2d2eaa5524b6ff880d2dea51
7
+ data.tar.gz: 7dd24c3179b2ddb8e182c2235fb656f3335b4fb6072371d2b414290f6e4b73317195ae0cf1e823077b31acfa8332484ae992fe3877cf60754dda9208075e186a
data/README.md CHANGED
@@ -141,6 +141,8 @@ gem 'simplecov' # test
141
141
  * In foreman directory, install dependencies:
142
142
 
143
143
  ```shell
144
+ gem install bundler
145
+ # prerequisites postgresql-client library on OS
144
146
  bundle config set without 'libvirt ovirt mysql2'
145
147
  bundle install
146
148
  ```
@@ -155,7 +157,19 @@ npm install
155
157
  cp config/settings.yaml.test config/settings.yaml
156
158
  ```
157
159
 
158
- * Install foreman database in postgresql (sqlite is no more default in rails development):
160
+ add these lines to config/settings.yml:
161
+
162
+ ```yaml
163
+ :webpack_dev_server: true
164
+ ```
165
+
166
+ * SQLite is no more default rails dev or test database, instead add:
167
+
168
+ ```shell
169
+ DATABASE_URL=nulldb://nohost
170
+ ```
171
+
172
+ * (Optional) test and dev with postgresql database:
159
173
 
160
174
  ```shell
161
175
  cp config/model.mappings.example config/model.mappings
@@ -202,7 +216,7 @@ or just one:
202
216
 
203
217
  ```shell
204
218
  export DISABLE_SPRING=true
205
- bundle exec bin/rake test TEST=test/functional/compute_resources_controller_test.rb
219
+ bundle exec bin/rake test TEST=../foreman_fog_proxmox/test/functional/compute_resources_controller_test.rb DATABASE_URL=nulldb://nohost
206
220
  ```
207
221
 
208
222
  * Check code syntax with rubocop and foreman rules:
@@ -176,4 +176,9 @@ module ProxmoxComputeSelectorsHelper
176
176
  OpenStruct.new(id: 'rtl8139', name: 'Realtek RTL8139'),
177
177
  OpenStruct.new(id: 'vmxnet3', name: 'VMware vmxnet3')]
178
178
  end
179
+
180
+ def proxmox_bios_map
181
+ [OpenStruct.new(id: 'seabios', name: '(Default) Seabios'),
182
+ OpenStruct.new(id: 'ovmf', name: 'OVMF (UEFI)')]
183
+ end
179
184
  end
@@ -85,12 +85,4 @@ module ProxmoxVmHelper
85
85
  memory = (config_hash[key].to_i / MEGA).to_s == '0' ? config_hash[key] : (config_hash[key].to_i / MEGA).to_s
86
86
  config_hash.store(key, memory)
87
87
  end
88
-
89
- def vm_type(host)
90
- host.compute_object.type
91
- end
92
-
93
- def node_id(host)
94
- host.compute_object.node_id
95
- end
96
88
  end
@@ -38,12 +38,25 @@ module ForemanFogProxmox
38
38
  [:disks, :interfaces, :vmid, :node_id, :node, :type].include?(key) || !vm.config.respond_to?(key)
39
39
  end
40
40
 
41
+ def interface_compute_attributes(interface_attributes)
42
+ vm_attrs = {}
43
+ vm_attrs.store(:mac, interface_attributes[:macaddr])
44
+ vm_attrs.store(:id, interface_attributes[:id])
45
+ vm_attrs.store(:identifier, interface_attributes[:id])
46
+ vm_attrs.store(:ip, interface_attributes[:ip])
47
+ vm_attrs.store(:ip6, interface_attributes[:ip6])
48
+ vm_attrs[:compute_attributes] = interface_attributes.reject { |k, _v| [:macaddr, :id].include?(k) }
49
+ vm_attrs
50
+ end
51
+
41
52
  def vm_compute_attributes(vm)
42
53
  vm_attrs = {}
43
54
  if vm.respond_to?(:config)
44
55
  vm_attrs = vm_attrs.merge(vmid: vm.identity, node_id: vm.node_id, type: vm.type)
45
56
  vm_attrs[:volumes_attributes] = Hash[vm.config.disks.each_with_index.map { |disk, idx| [idx.to_s, disk.attributes] }] if vm.config.respond_to?(:disks)
46
- vm_attrs[:interfaces_attributes] = Hash[vm.config.interfaces.each_with_index.map { |interface, idx| [idx.to_s, interface.attributes] }] if vm.config.respond_to?(:interfaces)
57
+ if vm.config.respond_to?(:interfaces)
58
+ vm_attrs[:interfaces_attributes] = Hash[vm.config.interfaces.each_with_index.map { |interface, idx| [idx.to_s, interface_compute_attributes(interface.attributes)] }]
59
+ end
47
60
  vm_attrs[:config_attributes] = vm.config.attributes.reject do |key, value|
48
61
  not_config_key?(vm, key) || ForemanFogProxmox::Value.empty?(value.to_s) || Fog::Proxmox::DiskHelper.disk?(key.to_s) || Fog::Proxmox::NicHelper.nic?(key.to_s)
49
62
  end
@@ -22,7 +22,7 @@ require 'fog/proxmox'
22
22
  module ForemanFogProxmox
23
23
  module ProxmoxConnection
24
24
  def connection_options
25
- opts = http_proxy ? { proxy: http_proxy.full_url } : { disable_proxy: 1 }
25
+ opts = super
26
26
  opts.store(:ssl_verify_peer, ssl_verify_peer)
27
27
  opts.store(:ssl_cert_store, certs_to_store) if Foreman::Cast.to_bool(ssl_verify_peer)
28
28
  opts
@@ -39,7 +39,7 @@ module ForemanFogProxmox
39
39
  end
40
40
 
41
41
  def os_linux_types_mapping(host)
42
- ['Debian', 'Redhat', 'Suse', 'Altlinux', 'Archlinux', 'CoreOs', 'Gentoo'].include?(host.operatingsystem.type) ? available_linux_operating_systems : []
42
+ ['Debian', 'Redhat', 'Suse', 'Altlinux', 'Archlinux', 'Coreos', 'Gentoo'].include?(host.operatingsystem.type) ? available_linux_operating_systems : []
43
43
  end
44
44
 
45
45
  def os_windows_types_mapping(host)
@@ -32,6 +32,7 @@ module ForemanFogProxmox
32
32
  vmid = args[:vmid].to_i
33
33
  type = args[:type]
34
34
  node = client.nodes.get(args[:node_id])
35
+ vmid = node.servers.next_id.to_i if vmid < 1
35
36
  raise ::Foreman::Exception, format(N_('invalid vmid=%<vmid>s'), vmid: vmid) unless node.servers.id_valid?(vmid)
36
37
 
37
38
  image_id = args[:image_id]
@@ -16,8 +16,8 @@ You should have received a copy of the GNU General Public License
16
16
  along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
17
17
  <% if @host.compute_resource.class == ForemanFogProxmox::Proxmox %>
18
18
  <% compute_attributes = f.object.compute_attributes %>
19
- <% vm_type = vm_type(@host) %>
20
- <% node_id = node_id(@host) %>
19
+ <% vm_type = f.object.respond_to?('type') ? f.object.type : nil %>
20
+ <% node_id = f.object.respond_to?('node_id') ? f.object.node_id : nil %>
21
21
 
22
22
  <%= f.fields_for 'compute_attributes', OpenStruct.new(f.object.compute_attributes) do |f| %>
23
23
  <%= render provider_partial(@host.compute_resource, 'network'), :f => f, :vm_type => vm_type, :node_id => node_id, :disabled => f.object.persisted?, :compute_resource => @host.compute_resource, :new_host => new_vm, :new_vm => new_vm %>
@@ -28,6 +28,7 @@ along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>. %>
28
28
  <%= select_f f, :keyboard, proxmox_keyboards_map, :id, :name, { }, :label => _('Keyboard'), :label_size => "col-md-2" %>
29
29
  <%= select_f f, :vga, proxmox_vgas_map, :id, :name, { :include_blank => true }, :label => _('VGA'), :label_size => "col-md-2" %>
30
30
  <%= select_f f, :scsihw, proxmox_scsi_controllers_map, :id, :name, { }, :label => _('SCSI Controller'), :label_size => "col-md-2" %>
31
+ <%= select_f f, :bios, proxmox_bios_map, :id, :name, { }, :label => _('BIOS'), :label_size => "col-md-2" %>
31
32
  <% end %>
32
33
  <%= field_set_tag _("CPU"), :id => "server_config_cpu", :class => 'hide', :disabled => !server do %>
33
34
  <%= select_f f, :cpu_type, proxmox_cpus_map, :id, :name, { }, :label => _('Type'), :label_size => "col-md-2" %>
@@ -45,8 +45,8 @@ module ForemanFogProxmox
45
45
  # add dashboard widget
46
46
  widget 'foreman_fog_proxmox_widget', name: N_('Foreman Fog Proxmox widget'), sizex: 8, sizey: 1
47
47
  security_block :foreman_fog_proxmox do
48
- permission :view_compute_resource, 'foreman_fog_proxmox/compute_resources' =>
49
- [:ostemplates_by_node_and_storage, :isos_by_node_and_storage, :ostemplates_by_node, :isos_by_node, :storages_by_node, :iso_storages_by_node, :bridges_by_node]
48
+ permission :view_compute_resource, { :compute_resources =>
49
+ [:ostemplates_by_node_and_storage, :isos_by_node_and_storage, :ostemplates_by_node, :isos_by_node, :storages_by_node, :iso_storages_by_node, :bridges_by_node] }
50
50
  end
51
51
  end
52
52
  end
@@ -18,5 +18,5 @@
18
18
  # along with ForemanFogProxmox. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module ForemanFogProxmox
21
- VERSION = '0.11.0'
21
+ VERSION = '0.12.4'
22
22
  end
@@ -96,7 +96,11 @@ module ForemanFogProxmox
96
96
  assert_equal volume_attributes, vm_attrs[:volumes_attributes]['0']
97
97
  assert_not vm_attrs[:config_attributes].key?(:interfaces)
98
98
  assert vm_attrs.key?(:interfaces_attributes)
99
- assert_equal interface_attributes, vm_attrs[:interfaces_attributes]['0']
99
+ assert_equal interface_attributes[:id], vm_attrs[:interfaces_attributes]['0'][:id]
100
+ assert_equal interface_attributes[:id], vm_attrs[:interfaces_attributes]['0'][:identifier]
101
+ assert_equal interface_attributes[:macaddr], vm_attrs[:interfaces_attributes]['0'][:mac]
102
+ assert_equal interface_attributes[:model], vm_attrs[:interfaces_attributes]['0'][:compute_attributes][:model]
103
+ assert_equal interface_attributes[:bridge], vm_attrs[:interfaces_attributes]['0'][:compute_attributes][:bridge]
100
104
  end
101
105
 
102
106
  it 'converts a container to hash' do
@@ -109,7 +113,11 @@ module ForemanFogProxmox
109
113
  assert vm_attrs.key?(:volumes_attributes)
110
114
  assert_equal volume_attributes, vm_attrs[:volumes_attributes]['0']
111
115
  assert vm_attrs.key?(:interfaces_attributes)
112
- assert_equal interface_attributes, vm_attrs[:interfaces_attributes]['0']
116
+ assert_equal interface_attributes[:id], vm_attrs[:interfaces_attributes]['0'][:id]
117
+ assert_equal interface_attributes[:id], vm_attrs[:interfaces_attributes]['0'][:identifier]
118
+ assert_equal interface_attributes[:name], vm_attrs[:interfaces_attributes]['0'][:compute_attributes][:name]
119
+ assert_equal interface_attributes[:mac], vm_attrs[:interfaces_attributes]['0'][:compute_attributes][:mac]
120
+ assert_equal interface_attributes[:bridge], vm_attrs[:interfaces_attributes]['0'][:compute_attributes][:bridge]
113
121
  end
114
122
  end
115
123
  end
@@ -31,7 +31,7 @@ module ForemanFogProxmox
31
31
  include ProxmoxVmHelper
32
32
 
33
33
  describe 'create_vm' do
34
- it 'raises Foreman::Exception when vmid is invalid' do
34
+ it 'raises Foreman::Exception when vmid <= 100 and vmid > 0' do
35
35
  args = { vmid: '100' }
36
36
  servers = mock('servers')
37
37
  servers.stubs(:id_valid?).returns(false)
@@ -42,6 +42,20 @@ module ForemanFogProxmox
42
42
  assert err.message.end_with?('invalid vmid=100')
43
43
  end
44
44
 
45
+ it 'computes next vmid when vmid == 0 and creates server' do
46
+ args = { vmid: '0', type: 'qemu', node_id: 'pve', start_after_create: '0' }
47
+ servers = mock('servers')
48
+ servers.stubs(:id_valid?).returns(true)
49
+ servers.stubs(:next_id).returns('101')
50
+ cr = mock_node_servers(ForemanFogProxmox::Proxmox.new, servers)
51
+ cr.stubs(:convert_sizes).with(args)
52
+ cr.stubs(:parse_server_vm).with(args).returns(args)
53
+ servers.stubs(:create).with(args)
54
+ vm = mock('vm')
55
+ cr.stubs(:find_vm_by_uuid).with((args[:vmid]).to_s).returns(vm)
56
+ cr.create_vm(args)
57
+ end
58
+
45
59
  it 'creates server without bootstart' do
46
60
  args = { vmid: '100', type: 'qemu', node_id: 'pve', start_after_create: '0' }
47
61
  servers = mock('servers')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_fog_proxmox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Robert
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-05-14 00:00:00.000000000 Z
12
+ date: 2020-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: deface
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '0.12'
34
+ version: '0.13'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0.12'
41
+ version: '0.13'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rdoc
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -175,13 +175,9 @@ files:
175
175
  - lib/foreman_fog_proxmox/version.rb
176
176
  - lib/tasks/foreman_fog_proxmox_tasks.rake
177
177
  - locale/Makefile
178
- - locale/en/foreman_fog_proxmox.edit.po
179
178
  - locale/en/foreman_fog_proxmox.po
180
- - locale/en/foreman_fog_proxmox.po.time_stamp
181
179
  - locale/foreman_fog_proxmox.pot
182
- - locale/fr/foreman_fog_proxmox.edit.po
183
180
  - locale/fr/foreman_fog_proxmox.po
184
- - locale/fr/foreman_fog_proxmox.po.time_stamp
185
181
  - locale/gemspec.rb
186
182
  - test/factories/foreman_fog_proxmox/proxmox_container_mock_factory.rb
187
183
  - test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
@@ -230,24 +226,24 @@ specification_version: 4
230
226
  summary: Foreman plugin that adds Proxmox VE compute resource using fog-proxmox
231
227
  test_files:
232
228
  - test/factories/proxmox_factory.rb
229
+ - test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
233
230
  - test/factories/foreman_fog_proxmox/proxmox_container_mock_factory.rb
234
231
  - test/factories/foreman_fog_proxmox/proxmox_server_mock_factory.rb
235
- - test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
236
- - test/functional/compute_resources_controller_test.rb
237
232
  - test/test_plugin_helper.rb
233
+ - test/functional/compute_resources_controller_test.rb
234
+ - test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
235
+ - test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
236
+ - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
238
237
  - test/unit/foreman_fog_proxmox/proxmox_vm_new_test.rb
239
- - test/unit/foreman_fog_proxmox/proxmox_images_test.rb
240
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb
241
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
242
- - test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb
243
238
  - test/unit/foreman_fog_proxmox/proxmox_version_test.rb
244
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_volumes_test.rb
245
239
  - test/unit/foreman_fog_proxmox/semver_test.rb
240
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb
241
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
242
+ - test/unit/foreman_fog_proxmox/proxmox_test.rb
246
243
  - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb
247
244
  - test/unit/foreman_fog_proxmox/proxmox_compute_attributes_test.rb
248
- - test/unit/foreman_fog_proxmox/proxmox_test.rb
249
- - test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
250
245
  - test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb
251
- - test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
252
- - test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
253
- - test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
246
+ - test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb
247
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_volumes_test.rb
248
+ - test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
249
+ - test/unit/foreman_fog_proxmox/proxmox_images_test.rb
@@ -1,528 +0,0 @@
1
- # English translations for foreman_fog_proxmox package.
2
- # Copyright (C) 2018 THE PACKAGE'S COPYRIGHT HOLDER
3
- # This file is distributed under the same license as the foreman_fog_proxmox package.
4
- # Tristan Robert <tristan.robert.44@gmail.com>, 2018.
5
- #
6
- msgid ""
7
- msgstr ""
8
- "Project-Id-Version: foreman_fog_proxmox 1.0.0\n"
9
- "Report-Msgid-Bugs-To: \n"
10
- "PO-Revision-Date: 2018-07-17 15:16+0200\n"
11
- "Last-Translator: Tristan Robert <tristan.robert.44@gmail.com>\n"
12
- "Language-Team: English\n"
13
- "Language: en\n"
14
- "MIME-Version: 1.0\n"
15
- "Content-Type: text/plain; charset=UTF-8\n"
16
- "Content-Transfer-Encoding: 8bit\n"
17
- "Plural-Forms: nplurals=2; plural=n != 1;\n"
18
- "\n"
19
-
20
- #: ../app/helpers/node_dashboard_helper.rb:33
21
- msgid "Time"
22
- msgstr ""
23
-
24
- #: ../app/helpers/node_dashboard_helper.rb:33
25
- msgid "Average load (x100)"
26
- msgstr ""
27
-
28
- #: ../app/helpers/proxmox_form_helper.rb:35
29
- msgid "Change the password"
30
- msgstr ""
31
-
32
- #: ../app/models/concerns/orchestration/proxmox/compute.rb:30
33
- msgid "Failed to update a compute %<compute_resource>s instance %<name>s: %<e>s"
34
- msgstr ""
35
-
36
- #: ../app/models/concerns/orchestration/proxmox/compute.rb:38
37
- msgid "Failed to undo update compute %<compute_resource>s instance %<name>s: %<e>s"
38
- msgstr ""
39
-
40
- #: ../app/models/foreman_fog_proxmox/proxmox.rb:87
41
- msgid "Unable to store X509 certificates"
42
- msgstr ""
43
-
44
- #: ../app/models/foreman_fog_proxmox/proxmox.rb:112
45
- msgid "Failed retrieving proxmox compute client caused by %<e>s"
46
- msgstr ""
47
-
48
- #: ../app/models/foreman_fog_proxmox/proxmox.rb:119
49
- msgid "Failed retrieving proxmox identity client caused by %<e>s"
50
- msgstr ""
51
-
52
- #: ../app/models/foreman_fog_proxmox/proxmox.rb:126
53
- msgid "Failed retrieving proxmox network client caused by %<e>s"
54
- msgstr ""
55
-
56
- #: ../app/models/foreman_fog_proxmox/proxmox_compute_attributes.rb:31
57
- msgid "Operating system family %<type>s is not consistent with %<ostype>s"
58
- msgstr ""
59
-
60
- #: ../app/models/foreman_fog_proxmox/proxmox_console.rb:37
61
- msgid "%<s>s console is not supported at this time"
62
- msgstr ""
63
-
64
- #: ../app/models/foreman_fog_proxmox/proxmox_images.rb:51
65
- msgid "create_vm(): clone %<image_id>s in %<vmid>s"
66
- msgstr ""
67
-
68
- #: ../app/models/foreman_fog_proxmox/proxmox_pools.rb:28
69
- msgid "pool_owner(%<vmid>s)"
70
- msgstr ""
71
-
72
- #: ../app/models/foreman_fog_proxmox/proxmox_pools.rb:31
73
- msgid "found vm: %<vmid>s member of pool: %<poolid>s"
74
- msgstr ""
75
-
76
- #: ../app/models/foreman_fog_proxmox/proxmox_pools.rb:36
77
- msgid "add_vm_to_pool(%<poolid>s, %<vmid>s)"
78
- msgstr ""
79
-
80
- #: ../app/models/foreman_fog_proxmox/proxmox_pools.rb:42
81
- msgid "remove_vm_from_pool(%<poolid>s, %<vmid>s)"
82
- msgstr ""
83
-
84
- #: ../app/models/foreman_fog_proxmox/proxmox_version.rb:25
85
- msgid "Proxmox compute resource version is %<version>s"
86
- msgstr ""
87
-
88
- #: ../app/models/foreman_fog_proxmox/proxmox_version.rb:26
89
- msgid "Proxmox version %<version>s is not semver suitable"
90
- msgstr ""
91
-
92
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:35
93
- msgid "invalid vmid=%<vmid>s"
94
- msgstr ""
95
-
96
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_commands.rb:54
97
- msgid "failed to create vm: %<e>s"
98
- msgstr ""
99
-
100
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_new.rb:152
101
- msgid "new_vm() vm.config=%<config>s"
102
- msgstr ""
103
-
104
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_new.rb:163
105
- msgid "new_container_vm() vm.config=%<config>s"
106
- msgstr ""
107
-
108
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_new.rb:174
109
- msgid "new_server_vm() vm.config=%<config>s"
110
- msgstr ""
111
-
112
- #: ../app/models/foreman_fog_proxmox/proxmox_vm_queries.rb:71
113
- msgid "Failed retrieving proxmox server vm by vmid=%<vmid>s"
114
- msgstr ""
115
-
116
- #: ../app/models/foreman_fog_proxmox/proxmox_volumes.rb:42
117
- msgid "Unable to shrink %<id>s size. Proxmox allows only increasing size."
118
- msgstr ""
119
-
120
- #: ../app/views/compute_resources/form/_proxmox.html.erb:8
121
- msgid "Renew expired token ?"
122
- msgstr ""
123
-
124
- #: ../app/views/compute_resources/form/_proxmox.html.erb:9
125
- msgid "e.g. https://127.0.0.1:8006/api2/json"
126
- msgstr ""
127
-
128
- #: ../app/views/compute_resources/form/_proxmox.html.erb:9
129
- msgid "Test failed"
130
- msgstr ""
131
-
132
- #: ../app/views/compute_resources/form/_proxmox.html.erb:10
133
- msgid "e.g. root@pam"
134
- msgstr ""
135
-
136
- #: ../app/views/compute_resources/form/_proxmox.html.erb:12
137
- msgid "SSL verify peer"
138
- msgstr ""
139
-
140
- #: ../app/views/compute_resources/form/_proxmox.html.erb:13
141
- msgid "X509 Certification Authorities"
142
- msgstr ""
143
-
144
- #: ../app/views/compute_resources/form/_proxmox.html.erb:14
145
- msgid "Optionally provide a CA, or a correctly ordered CA chain. If left blank, disable ssl_verify_peer."
146
- msgstr ""
147
-
148
- #: ../app/views/compute_resources/show/_proxmox.html.erb:4
149
- msgid "URL"
150
- msgstr ""
151
-
152
- #: ../app/views/compute_resources/show/_proxmox.html.erb:8
153
- msgid "Version"
154
- msgstr ""
155
-
156
- #: ../app/views/compute_resources/show/_proxmox.html.erb:12
157
- msgid "Token has expired?"
158
- msgstr ""
159
-
160
- #: ../app/views/compute_resources/show/_proxmox.html.erb:16
161
- msgid "Token expires on"
162
- msgstr ""
163
-
164
- #: ../app/views/compute_resources/show/_proxmox.html.erb:20
165
- msgid "Cluster nodes"
166
- msgstr ""
167
-
168
- #: ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_form.html.erb:7 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_form.html.erb:11 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb:9 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_networks_new_childs_form.html.erb:15
169
- msgid "remove network interface"
170
- msgstr ""
171
-
172
- #: ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:12 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:18 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:26 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:30 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:34 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:45 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:49
173
- msgid "remove storage volume"
174
- msgstr ""
175
-
176
- #: ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:39 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:40 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:53
177
- msgid "Add Volume"
178
- msgstr ""
179
-
180
- #: ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:39 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:40 ../app/views/compute_resources_vms/form/proxmox/_add_vm_type_to_volumes_edit.html.erb:53
181
- msgid "add new storage volume"
182
- msgstr ""
183
-
184
- #: ../app/views/compute_resources_vms/form/proxmox/_base.html.erb:6 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:18 ../app/views/compute_resources_vms/index/_proxmox.html.erb:8
185
- msgid "Type"
186
- msgstr ""
187
-
188
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:5
189
- msgid "General"
190
- msgstr ""
191
-
192
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:6
193
- msgid "Create image?"
194
- msgstr ""
195
-
196
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:7
197
- msgid "VM ID"
198
- msgstr ""
199
-
200
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:8 ../app/views/compute_resources_vms/index/_proxmox.html.erb:7
201
- msgid "Node"
202
- msgstr ""
203
-
204
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:9
205
- msgid "Start after creation?"
206
- msgstr ""
207
-
208
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:19 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:36
209
- msgid "Image"
210
- msgstr ""
211
-
212
- #: ../app/views/compute_resources_vms/form/proxmox/_general.html.erb:23
213
- msgid "Pool"
214
- msgstr ""
215
-
216
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:5 ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:5
217
- msgid "Advanced"
218
- msgstr ""
219
-
220
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:6 ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:5 ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:6 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:7
221
- msgid "Main option"
222
- msgid_plural "Main options"
223
- msgstr[0] ""
224
- msgstr[1] ""
225
-
226
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:8 ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:9 ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:8 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:17
227
- msgid "CPU"
228
- msgstr ""
229
-
230
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:10 ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:15 ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:16 ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:10 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:28 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:29 ../app/views/compute_resources_vms/index/_proxmox.html.erb:10
231
- msgid "Memory"
232
- msgstr ""
233
-
234
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:12 ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:19
235
- msgid "DNS"
236
- msgstr ""
237
-
238
- #: ../app/views/compute_resources_vms/form/proxmox/container/_advanced.html.erb:14 ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:14
239
- msgid "OS"
240
- msgstr ""
241
-
242
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:6 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:8
243
- msgid "Description"
244
- msgstr ""
245
-
246
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:7 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:10
247
- msgid "Start at boot"
248
- msgstr ""
249
-
250
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:10
251
- msgid "Architecture"
252
- msgstr ""
253
-
254
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:11 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:20
255
- msgid "Cores"
256
- msgstr ""
257
-
258
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:12 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:22
259
- msgid "CPU limit"
260
- msgstr ""
261
-
262
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:13 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:23
263
- msgid "CPU units"
264
- msgstr ""
265
-
266
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:17
267
- msgid "Swap"
268
- msgstr ""
269
-
270
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:20
271
- msgid "Hostname"
272
- msgstr ""
273
-
274
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:21
275
- msgid "DNS server"
276
- msgstr ""
277
-
278
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:22
279
- msgid "Search domain"
280
- msgstr ""
281
-
282
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:24 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:42
283
- msgid "Operating System"
284
- msgstr ""
285
-
286
- #: ../app/views/compute_resources_vms/form/proxmox/container/_config.html.erb:25 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:43
287
- msgid "OS type"
288
- msgstr ""
289
-
290
- #: ../app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb:6
291
- msgid "Extended"
292
- msgstr ""
293
-
294
- #: ../app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb:8
295
- msgid "Template storage"
296
- msgstr ""
297
-
298
- #: ../app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb:9
299
- msgid "OS Template"
300
- msgstr ""
301
-
302
- #: ../app/views/compute_resources_vms/form/proxmox/container/_extended.html.erb:11
303
- msgid "Root password"
304
- msgstr ""
305
-
306
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:6 ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:6
307
- msgid "Nic"
308
- msgstr ""
309
-
310
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:8 ../app/views/compute_resources_vms/index/_proxmox.html.erb:6
311
- msgid "Name"
312
- msgstr ""
313
-
314
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:9
315
- msgid "DHCP IPv4"
316
- msgstr ""
317
-
318
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:10
319
- msgid "CIDR IPv4 prefix"
320
- msgstr ""
321
-
322
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:11
323
- msgid "Gateway IPv4"
324
- msgstr ""
325
-
326
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:12
327
- msgid "DHCP IPv6"
328
- msgstr ""
329
-
330
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:13
331
- msgid "CIDR IPv6 prefix"
332
- msgstr ""
333
-
334
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:14
335
- msgid "Gateway IPv6"
336
- msgstr ""
337
-
338
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:15 ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:10
339
- msgid "VLAN tag"
340
- msgstr ""
341
-
342
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:16 ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:11
343
- msgid "Rate limit"
344
- msgstr ""
345
-
346
- #: ../app/views/compute_resources_vms/form/proxmox/container/_network.html.erb:17 ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:9
347
- msgid "Bridge"
348
- msgstr ""
349
-
350
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:6
351
- msgid "Mount point"
352
- msgstr ""
353
-
354
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:8 ../app/views/compute_resources_vms/form/proxmox/container/_volume_rootfs.html.erb:7 ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:38 ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:8
355
- msgid "Storage"
356
- msgstr ""
357
-
358
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:9
359
- msgid "Path"
360
- msgstr ""
361
-
362
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:9
363
- msgid "e.g. /path/to/"
364
- msgstr ""
365
-
366
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:10 ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:10
367
- msgid "Device"
368
- msgstr ""
369
-
370
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_mp.html.erb:11 ../app/views/compute_resources_vms/form/proxmox/container/_volume_rootfs.html.erb:8 ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:12
371
- msgid "Size"
372
- msgstr ""
373
-
374
- #: ../app/views/compute_resources_vms/form/proxmox/container/_volume_rootfs.html.erb:5
375
- msgid "Rootfs"
376
- msgstr ""
377
-
378
- #: ../app/views/compute_resources_vms/form/proxmox/server/_advanced.html.erb:12
379
- msgid "CDROM"
380
- msgstr ""
381
-
382
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:9
383
- msgid "Boot device order"
384
- msgstr ""
385
-
386
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:9
387
- msgid "Floppy disk (a), hard disk (c), cdrom (d), network (n). Default cdn"
388
- msgstr ""
389
-
390
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:11
391
- msgid "Qemu Agent"
392
- msgstr ""
393
-
394
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:12
395
- msgid "KVM"
396
- msgstr ""
397
-
398
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:12
399
- msgid "Enable/disable KVM hardware virtualization"
400
- msgstr ""
401
-
402
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:13
403
- msgid "Keyboard"
404
- msgstr ""
405
-
406
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:14
407
- msgid "VGA"
408
- msgstr ""
409
-
410
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:15
411
- msgid "SCSI Controller"
412
- msgstr ""
413
-
414
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:19
415
- msgid "Sockets"
416
- msgstr ""
417
-
418
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:21
419
- msgid "VCPUs"
420
- msgstr ""
421
-
422
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:24
423
- msgid "Enable NUMA"
424
- msgstr ""
425
-
426
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:25
427
- msgid "PCID"
428
- msgstr ""
429
-
430
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:26
431
- msgid "Spectre-CTRL"
432
- msgstr ""
433
-
434
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:30
435
- msgid "Minimum memory"
436
- msgstr ""
437
-
438
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:31
439
- msgid "Shares"
440
- msgstr ""
441
-
442
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:33
443
- msgid "CD-ROM"
444
- msgstr ""
445
-
446
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:34
447
- msgid "None"
448
- msgstr ""
449
-
450
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:35
451
- msgid "Physical"
452
- msgstr ""
453
-
454
- #: ../app/views/compute_resources_vms/form/proxmox/server/_config.html.erb:39
455
- msgid "Image ISO"
456
- msgstr ""
457
-
458
- #: ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:8
459
- msgid "Card"
460
- msgstr ""
461
-
462
- #: ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:12
463
- msgid "Multiqueue"
464
- msgstr ""
465
-
466
- #: ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:13
467
- msgid "Firewall"
468
- msgstr ""
469
-
470
- #: ../app/views/compute_resources_vms/form/proxmox/server/_network.html.erb:14
471
- msgid "Disconnect"
472
- msgstr ""
473
-
474
- #: ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:6
475
- msgid "Disk"
476
- msgstr ""
477
-
478
- #: ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:9
479
- msgid "Controller"
480
- msgstr ""
481
-
482
- #: ../app/views/compute_resources_vms/form/proxmox/server/_volume.html.erb:11
483
- msgid "Cache"
484
- msgstr ""
485
-
486
- #: ../app/views/compute_resources_vms/index/_proxmox.html.erb:9
487
- msgid "CPUs"
488
- msgstr ""
489
-
490
- #: ../app/views/compute_resources_vms/index/_proxmox.html.erb:11
491
- msgid "Power"
492
- msgstr ""
493
-
494
- #: ../app/views/compute_resources_vms/index/_proxmox.html.erb:12
495
- msgid "Uptime"
496
- msgstr ""
497
-
498
- #: ../app/views/dashboard/_foreman_fog_proxmox_widget.erb:5
499
- msgid "Proxmox Node Statistics: %s"
500
- msgstr ""
501
-
502
- #: ../app/views/images/form/_proxmox.html.erb:3
503
- msgid "The user that is used to ssh into the instance, normally cloud-user, ubuntu, root etc"
504
- msgstr ""
505
-
506
- #: ../app/views/images/form/_proxmox.html.erb:4
507
- msgid "Password to authenticate with - used for SSH finish step."
508
- msgstr ""
509
-
510
- #: ../app/views/images/form/_proxmox.html.erb:5
511
- msgid "Does this image support user data input (e.g. via cloud-init)?"
512
- msgstr ""
513
-
514
- #: ../app/views/images/form/_proxmox.html.erb:6
515
- msgid "Image VMID"
516
- msgstr ""
517
-
518
- #: ../app/views/images/form/_proxmox.html.erb:6
519
- msgid "vmid of template vm."
520
- msgstr ""
521
-
522
- #: ../lib/foreman_fog_proxmox/engine.rb:46
523
- msgid "Foreman Fog Proxmox widget"
524
- msgstr ""
525
-
526
- #: gemspec.rb:4
527
- msgid "ForemanFogProxmox plugin adds Proxmox VE compute resource to Foreman using fog-proxmox gem."
528
- msgstr ""