foreman_fog_proxmox 0.16.1 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/foreman_fog_proxmox/hosts_controller.rb +1 -1
- data/app/helpers/proxmox_vm_attrs_helper.rb +3 -3
- data/app/helpers/proxmox_vm_cdrom_helper.rb +1 -1
- data/app/helpers/proxmox_vm_cloudinit_helper.rb +1 -1
- data/app/helpers/proxmox_vm_config_helper.rb +1 -1
- data/app/helpers/proxmox_vm_helper.rb +5 -5
- data/app/helpers/proxmox_vm_interfaces_helper.rb +1 -1
- data/app/helpers/proxmox_vm_os_template_helper.rb +1 -1
- data/app/helpers/proxmox_vm_uuid_helper.rb +1 -1
- data/app/helpers/proxmox_vm_volumes_helper.rb +3 -3
- data/app/models/concerns/host_ext/proxmox/for_vm.rb +1 -1
- data/app/models/foreman_fog_proxmox/proxmox.rb +4 -4
- data/app/models/foreman_fog_proxmox/proxmox_interfaces.rb +1 -1
- data/app/models/foreman_fog_proxmox/proxmox_vm_commands.rb +2 -2
- data/app/models/foreman_fog_proxmox/proxmox_vm_new.rb +2 -2
- data/app/models/foreman_fog_proxmox/proxmox_vm_queries.rb +2 -2
- data/app/models/foreman_fog_proxmox/proxmox_volumes.rb +2 -2
- data/app/views/compute_resources_vms/form/proxmox/_add_react_component_to_host_form.html.erb +0 -1
- data/app/views/templates/provisioning/user_data/proxmox_user_data.erb +119 -0
- data/db/migrate/20210312105013_update_proxmox_uuid_host.rb +1 -1
- data/db/seeds.d/71_provisioning_templates.rb +7 -0
- data/lib/foreman_fog_proxmox/engine.rb +22 -27
- data/lib/foreman_fog_proxmox/version.rb +1 -1
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_vm_uuid_helper_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/helpers/proxmox_vm_volumes_helper_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_compute_attributes_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/proxmox_images_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb +3 -3
- data/test/unit/foreman_fog_proxmox/proxmox_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/proxmox_version_test.rb +1 -1
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cdrom_test.rb +5 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cloudinit_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_hard_disk_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_new_test.rb +2 -2
- data/test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb +2 -2
- data/webpack/components/GeneralTabContent.js +3 -3
- data/webpack/components/ProxmoxComputeSelectors.js +64 -20
- data/webpack/components/ProxmoxContainer/MountPoint.js +5 -8
- data/webpack/components/ProxmoxContainer/ProxmoxContainerOptions.js +3 -2
- data/webpack/components/ProxmoxContainer/ProxmoxContainerStorage.js +1 -1
- data/webpack/components/ProxmoxContainer/components/NetworkInterface.js +14 -13
- data/webpack/components/ProxmoxServer/ProxmoxServerHardware.js +22 -22
- data/webpack/components/ProxmoxServer/ProxmoxServerNetwork.js +1 -1
- data/webpack/components/ProxmoxServer/ProxmoxServerOptions.js +3 -3
- data/webpack/components/ProxmoxServer/components/HardDisk.js +13 -5
- data/webpack/components/ProxmoxServer/components/NetworkInterface.js +2 -2
- data/webpack/components/ProxmoxVmType.js +24 -21
- data/webpack/components/common/FormInputs.js +10 -2
- metadata +19 -17
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { Fragment } from 'react';
|
2
2
|
import { FieldLevelHelp } from 'patternfly-react';
|
3
|
+
import { Tooltip } from '@patternfly/react-core';
|
3
4
|
import PropTypes from 'prop-types';
|
4
5
|
import CommonForm from 'foremanReact/components/common/forms/CommonForm';
|
5
6
|
|
@@ -15,6 +16,7 @@ const InputField = ({
|
|
15
16
|
options,
|
16
17
|
checked,
|
17
18
|
error,
|
19
|
+
tooltip,
|
18
20
|
}) => {
|
19
21
|
const renderOptions = opts =>
|
20
22
|
opts.map(option => <option value={option.value}>{option.label}</option>);
|
@@ -39,7 +41,7 @@ const InputField = ({
|
|
39
41
|
<select
|
40
42
|
disabled={disabled}
|
41
43
|
name={name}
|
42
|
-
className="form-control"
|
44
|
+
className="without_select2 form-control"
|
43
45
|
value={value}
|
44
46
|
onChange={onChange}
|
45
47
|
>
|
@@ -88,7 +90,11 @@ const InputField = ({
|
|
88
90
|
)
|
89
91
|
}
|
90
92
|
>
|
91
|
-
{
|
93
|
+
{tooltip ? (
|
94
|
+
<Tooltip content={tooltip}>{renderComponent}</Tooltip>
|
95
|
+
) : (
|
96
|
+
renderComponent
|
97
|
+
)}
|
92
98
|
{error && (
|
93
99
|
<div style={{ color: 'red', marginTop: '0.5rem' }}>{error}</div>
|
94
100
|
)}
|
@@ -125,6 +131,7 @@ InputField.propTypes = {
|
|
125
131
|
})
|
126
132
|
),
|
127
133
|
error: PropTypes.string,
|
134
|
+
tooltip: PropTypes.string,
|
128
135
|
};
|
129
136
|
|
130
137
|
InputField.defaultProps = {
|
@@ -138,6 +145,7 @@ InputField.defaultProps = {
|
|
138
145
|
checked: false,
|
139
146
|
options: [],
|
140
147
|
error: '',
|
148
|
+
tooltip: '',
|
141
149
|
};
|
142
150
|
|
143
151
|
export default InputField;
|
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.
|
4
|
+
version: 0.17.0
|
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: 2024-
|
12
|
+
date: 2024-10-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: deface
|
@@ -204,8 +204,10 @@ files:
|
|
204
204
|
- app/views/compute_resources_vms/show/_proxmox.html.erb
|
205
205
|
- app/views/dashboard/_foreman_fog_proxmox_widget.erb
|
206
206
|
- app/views/images/form/_proxmox.html.erb
|
207
|
+
- app/views/templates/provisioning/user_data/proxmox_user_data.erb
|
207
208
|
- config/routes.rb
|
208
209
|
- db/migrate/20210312105013_update_proxmox_uuid_host.rb
|
210
|
+
- db/seeds.d/71_provisioning_templates.rb
|
209
211
|
- lib/foreman_fog_proxmox.rb
|
210
212
|
- lib/foreman_fog_proxmox/engine.rb
|
211
213
|
- lib/foreman_fog_proxmox/hash_collection.rb
|
@@ -291,29 +293,29 @@ signing_key:
|
|
291
293
|
specification_version: 4
|
292
294
|
summary: Foreman plugin that adds Proxmox VE compute resource using fog-proxmox
|
293
295
|
test_files:
|
294
|
-
- test/
|
295
|
-
- test/unit/foreman_fog_proxmox/
|
296
|
-
- test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb
|
297
|
-
- test/unit/foreman_fog_proxmox/proxmox_test.rb
|
296
|
+
- test/functional/compute_resources_controller_test.rb
|
297
|
+
- test/unit/foreman_fog_proxmox/semver_test.rb
|
298
298
|
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_hard_disk_test.rb
|
299
|
-
- test/unit/foreman_fog_proxmox/
|
299
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
|
300
300
|
- test/unit/foreman_fog_proxmox/helpers/proxmox_container_helper_test.rb
|
301
301
|
- test/unit/foreman_fog_proxmox/helpers/proxmox_vm_volumes_helper_test.rb
|
302
302
|
- test/unit/foreman_fog_proxmox/helpers/proxmox_vm_uuid_helper_test.rb
|
303
303
|
- test/unit/foreman_fog_proxmox/helpers/proxmox_vm_helper_test.rb
|
304
|
-
- test/unit/foreman_fog_proxmox/
|
305
|
-
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb
|
306
|
-
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
|
307
|
-
- test/unit/foreman_fog_proxmox/proxmox_images_test.rb
|
308
|
-
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_test.rb
|
304
|
+
- test/unit/foreman_fog_proxmox/helpers/proxmox_server_helper_test.rb
|
309
305
|
- test/unit/foreman_fog_proxmox/proxmox_version_test.rb
|
306
|
+
- test/unit/foreman_fog_proxmox/proxmox_interfaces_test.rb
|
307
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_container_test.rb
|
308
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_test.rb
|
309
|
+
- test/unit/foreman_fog_proxmox/proxmox_compute_attributes_test.rb
|
310
310
|
- test/unit/foreman_fog_proxmox/proxmox_vm_queries_test.rb
|
311
|
-
- test/unit/foreman_fog_proxmox/
|
312
|
-
- test/unit/foreman_fog_proxmox/
|
311
|
+
- test/unit/foreman_fog_proxmox/proxmox_images_test.rb
|
312
|
+
- test/unit/foreman_fog_proxmox/proxmox_test.rb
|
313
313
|
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cdrom_test.rb
|
314
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_update_cloudinit_test.rb
|
315
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_new_test.rb
|
316
|
+
- test/unit/foreman_fog_proxmox/proxmox_vm_commands_server_create_test.rb
|
314
317
|
- test/test_plugin_helper.rb
|
318
|
+
- test/factories/proxmox_factory.rb
|
315
319
|
- test/factories/foreman_fog_proxmox/proxmox_server_mock_factory.rb
|
316
|
-
- test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
|
317
320
|
- test/factories/foreman_fog_proxmox/proxmox_container_mock_factory.rb
|
318
|
-
- test/factories/
|
319
|
-
- test/functional/compute_resources_controller_test.rb
|
321
|
+
- test/factories/foreman_fog_proxmox/proxmox_node_mock_factory.rb
|