hammer_cli_foreman 3.11.0 → 3.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/host_create.md +0 -1
- data/doc/release_notes.md +8 -0
- data/lib/hammer_cli_foreman/compute_resource/libvirt.rb +0 -1
- data/lib/hammer_cli_foreman/compute_resource/vmware.rb +23 -20
- data/lib/hammer_cli_foreman/testing/api_expectations.rb +1 -1
- data/lib/hammer_cli_foreman/version.rb +1 -1
- data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/cs_CZ/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ka/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
- data/test/data/3.12/foreman_api.json +1 -0
- data/test/functional/architecture_test.rb +1 -1
- data/test/functional/bookmark_test.rb +1 -1
- data/test/functional/compute_profile_test.rb +1 -1
- data/test/functional/host_test.rb +1 -1
- data/test/functional/mail_notification_test.rb +1 -1
- data/test/functional/model_test.rb +1 -1
- data/test/functional/operating_system_test.rb +1 -1
- data/test/functional/settings_test.rb +1 -1
- data/test/functional/usergroup_test.rb +1 -1
- data/test/test_helper.rb +1 -1
- metadata +6 -36
- data/test/data/1.10/foreman_api.json +0 -1
- data/test/data/1.11/foreman_api.json +0 -1
- data/test/data/1.14/_foreman_api.json +0 -1
- data/test/data/1.14/foreman_api.json +0 -1
- data/test/data/1.15/foreman_api.json +0 -1
- data/test/data/1.16/foreman_api.json +0 -1
- data/test/data/1.17/foreman_api.json +0 -1
- data/test/data/1.18/foreman_api.json +0 -1
- data/test/data/1.20/foreman_api.json +0 -1
- data/test/data/1.21/foreman_api.json +0 -1
- data/test/data/1.22/foreman_api.json +0 -1
- data/test/data/1.24/foreman_api.json +0 -1
- data/test/data/2.0/foreman_api.json +0 -1
- data/test/data/2.1/foreman_api.json +0 -1
- data/test/data/2.4/foreman_api.json +0 -1
- data/test/data/2.5/foreman_api.json +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec9e20c7ec98e682b439d6c2bd817335cf9eec30ab716419fff5e2dcd4ad68f7
|
4
|
+
data.tar.gz: 40126935fdcf9759052c7a345c5e77525137cc778ed855e71ab3593dc0747ddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56901f6e3fe1e51bf5333267c7083a46207251d6c6b10331e9fafe337aac516a999e49e1f21c62ea107dcdd0061bc10704764f4c4e5945d4aadf77f90b4f0e91
|
7
|
+
data.tar.gz: 1dd75b9103aa2b3640b9f64c089a4edbb7a74239d00e6053ac21efd031ec8e7a28afc3403a29d845cccf05643ea5baf98973d44e4e92741a9a65c18df036b362
|
data/doc/host_create.md
CHANGED
@@ -194,7 +194,6 @@ Available keys for `--compute-attributes`:
|
|
194
194
|
```
|
195
195
|
cpus # number of CPUs
|
196
196
|
memory # string, amount of memory, value in bytes
|
197
|
-
cpu_mode # possible values: default, host-model, host-passthrough
|
198
197
|
start # Must be a 1 or 0, whether to start the machine or not
|
199
198
|
```
|
200
199
|
|
data/doc/release_notes.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
Release notes
|
2
2
|
=============
|
3
|
+
### 3.12.0 (2024-08-14)
|
4
|
+
* Ensure foreman_version usage in all tests
|
5
|
+
* Prune test data prior to 3.0
|
6
|
+
* Use 3.12 test data
|
7
|
+
* Drop cpu mode option for libvirt, [#36999](http://projects.theforeman.org/issues/36999)
|
8
|
+
* Add nvme controllers to hammer help ([PR #628](https://github.com/theforeman/hammer-cli-foreman/pull/628)), [#37689](http://projects.theforeman.org/issues/37689)
|
9
|
+
* Bump to 3.12.0-develop
|
10
|
+
|
3
11
|
### 3.11.0 (2024-05-22)
|
4
12
|
* Update test data to 3.11
|
5
13
|
* Bump to 3.11.0-develop
|
@@ -9,7 +9,6 @@ module HammerCLIForeman
|
|
9
9
|
[
|
10
10
|
['cpus', _('Number of CPUs'), { bold: true }],
|
11
11
|
['memory', _('String, amount of memory, value in bytes'), { bold: true }],
|
12
|
-
['cpu_mode', _('Possible values: %{modes}') % { modes: 'default, host-model, host-passthrough' }],
|
13
12
|
['boot_order', _('Device names to specify the boot order')]
|
14
13
|
]
|
15
14
|
end
|
@@ -10,7 +10,8 @@ module HammerCLIForeman
|
|
10
10
|
def compute_attributes
|
11
11
|
[
|
12
12
|
['cluster', _('Cluster ID from VMware'), { bold: true }],
|
13
|
-
['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)'),
|
13
|
+
['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)'),
|
14
|
+
{ bold: true }],
|
14
15
|
['cpus', _('CPU count'), { bold: true }],
|
15
16
|
['memory_mb', _('Integer number, amount of memory in MB'), { bold: true }],
|
16
17
|
['path', _('Path to folder'), { bold: true }],
|
@@ -23,10 +24,12 @@ module HammerCLIForeman
|
|
23
24
|
['add_cdrom', _('Must be a 1 or 0, Add a CD-ROM drive to the virtual machine')],
|
24
25
|
['annotation', _('Annotation Notes')],
|
25
26
|
['scsi_controllers', [_('List with SCSI controllers definitions'),
|
26
|
-
' type - ' + _('ID of the controller from VMware'),
|
27
|
-
' key - ' + _('Key of the controller (e.g. 1000)')
|
28
|
-
|
29
|
-
|
27
|
+
' type - ' + _('ID of the controller type from VMware'),
|
28
|
+
' key - ' + _('Key of the controller (e.g. 1000)')].flatten(1).join("\n")],
|
29
|
+
['nvme_controllers', [_('List with NVME controllers definitions'),
|
30
|
+
' type - ' + _('ID of the controller type from VMware'),
|
31
|
+
' key - ' + _('Key of the controller (e.g. 2000)')].flatten(1).join("\n")],
|
32
|
+
['boot_order', _('Device names to specify the boot order')]
|
30
33
|
]
|
31
34
|
end
|
32
35
|
|
@@ -45,7 +48,7 @@ module HammerCLIForeman
|
|
45
48
|
['size_gb', _('Integer number, volume size in GB')],
|
46
49
|
['thin', 'true/false'],
|
47
50
|
['eager_zero', 'true/false'],
|
48
|
-
['controller_key', 'Associated
|
51
|
+
['controller_key', 'Associated controller key']
|
49
52
|
]
|
50
53
|
end
|
51
54
|
|
@@ -63,25 +66,25 @@ module HammerCLIForeman
|
|
63
66
|
|
64
67
|
def provider_specific_fields
|
65
68
|
super + [
|
66
|
-
Fields::Field.new(:
|
67
|
-
Fields::Field.new(:
|
68
|
-
Fields::Boolean.new(:
|
69
|
-
Fields::Boolean.new(:
|
69
|
+
Fields::Field.new(label: _('Datacenter'), path: [:datacenter]),
|
70
|
+
Fields::Field.new(label: _('Server'), path: [:server]),
|
71
|
+
Fields::Boolean.new(label: _('Console password set'), path: [:set_console_password]),
|
72
|
+
Fields::Boolean.new(label: _('Caching enabled'), path: [:caching_enabled])
|
70
73
|
]
|
71
74
|
end
|
72
75
|
|
73
76
|
def provider_vm_specific_fields
|
74
77
|
[
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
78
|
+
Fields::Field.new(label: _('CPUs'), path: [:cpus]),
|
79
|
+
Fields::Field.new(label: _('Memory'), path: [:memory_mb]),
|
80
|
+
Fields::Field.new(label: _('Power Status'), path: [:power_state]),
|
81
|
+
Fields::Field.new(label: _('Host Name'), path: [:hostname]),
|
82
|
+
Fields::Field.new(label: _('Connection Status'), path: [:connection_status]),
|
83
|
+
Fields::Field.new(label: _('Hardware Version'), path: [:hardware_version]),
|
84
|
+
Fields::Field.new(label: _('Path'), path: [:path]),
|
85
|
+
Fields::Field.new(label: _('Operating System'), path: [:operatingsystem]),
|
86
|
+
Fields::Field.new(label: _('Mac'), path: [:mac]),
|
87
|
+
Fields::List.new(label: _('Boot order'), path: [:boot_order])
|
85
88
|
]
|
86
89
|
end
|
87
90
|
|
@@ -155,7 +155,7 @@ module HammerCLIForeman
|
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
158
|
-
def api_connection(options={}, version =
|
158
|
+
def api_connection(options={}, version = FOREMAN_VERSION)
|
159
159
|
FakeApiConnection.new({
|
160
160
|
:uri => 'https://test.org',
|
161
161
|
:apidoc_cache_dir => "test/data/#{version}",
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|