hammer_cli_foreman 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/doc/host_create.md +120 -85
  3. data/doc/release_notes.md +12 -0
  4. data/lib/hammer_cli_foreman/compute_resource.rb +106 -11
  5. data/lib/hammer_cli_foreman/compute_resources/vmware/host_help_extenstion.rb +25 -21
  6. data/lib/hammer_cli_foreman/host.rb +42 -1
  7. data/lib/hammer_cli_foreman/hosts/common_update_options.rb +9 -3
  8. data/lib/hammer_cli_foreman/output/fields.rb +45 -10
  9. data/lib/hammer_cli_foreman/output/formatters.rb +82 -45
  10. data/lib/hammer_cli_foreman/subnet.rb +25 -0
  11. data/lib/hammer_cli_foreman/version.rb +1 -1
  12. data/locale/ca/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  13. data/locale/de/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  14. data/locale/en/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  15. data/locale/en_GB/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  16. data/locale/es/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  17. data/locale/fr/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  18. data/locale/it/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  19. data/locale/ja/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  20. data/locale/ko/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  21. data/locale/pt_BR/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  22. data/locale/ru/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  23. data/locale/zh_CN/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  24. data/locale/zh_TW/LC_MESSAGES/hammer-cli-foreman.mo +0 -0
  25. data/test/functional/compute_resource_test.rb +260 -0
  26. data/test/functional/host_test.rb +49 -0
  27. data/test/functional/subnet/create_test.rb +131 -0
  28. data/test/functional/subnet/update_test.rb +130 -0
  29. data/test/unit/apipie_resource_mock.rb +4 -0
  30. data/test/unit/compute_resource_test.rb +22 -0
  31. data/test/unit/host_test.rb +2 -2
  32. data/test/unit/output/formatters_test.rb +77 -68
  33. metadata +10 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d9e0a20cb5bb0c548422b81c51845d180f0248a5
4
- data.tar.gz: dd3d176d20d93db8fc965b34d3c3aff90e83a575
3
+ metadata.gz: c487f375a9d6eec9d6b9fc03c382fe8dba041d28
4
+ data.tar.gz: 4f313e829274ca36c57522c9094fc9b37c2e8c13
5
5
  SHA512:
6
- metadata.gz: 0d7109efe44db2a67b8795a6914a9d518040eb8d8bb7f9c068c72382e3a3447fe43e82d1a1a154c585414378dfb56e988618c2895fe1b471d36614242ddbf2e2
7
- data.tar.gz: 8eed5877f859165ee08e64275401c217f085ceb1d9794c32cc5f6eb5229818479f76c223efed758bc00e86c69ad19989432808091d8d6f274b4cdce03a68014e
6
+ metadata.gz: 39d9cd46059539b650189d50196dcb08e2a1a77aecb292ab8d4e4f97c34a0738a5e403b14c6bc95e7e0f6b9a4197152612467118fbc43159df2d94826d9bf9a3
7
+ data.tar.gz: cb773aba24bfcbe45dd4ec9420855f569c1dcab84e80ef72eb7951a8abacfa12700d8fd49a8a06344ebaa5a35738970c6fcab4680a6e0b64e2748b1fddaa782a
data/doc/host_create.md CHANGED
@@ -7,7 +7,7 @@ is obvious but there are some that need further explanation as their values diff
7
7
  **Warning:**
8
8
  Output of `hammer host create -h` may vary with the Foreman server used and plugins installed.
9
9
 
10
- Sample help output for `hammer-cli-foreman 0.2.0` and `Foreman 1.8` follows:
10
+ Sample help output for `hammer-cli-foreman 0.15.0` and `Foreman 1.20` follows:
11
11
 
12
12
  ```
13
13
  $ hammer host create -h
@@ -15,71 +15,103 @@ Usage:
15
15
  hammer host create [OPTIONS]
16
16
 
17
17
  Options:
18
- --architecture ARCHITECTURE_NAME Architecture name
19
- --architecture-id ARCHITECTURE_ID
20
- --ask-root-password ASK_ROOT_PW One of true/false, yes/no, 1/0.
21
- --build BUILD One of true/false, yes/no, 1/0.
22
- Default: "true"
23
- --comment COMMENT Additional information about this host
24
- --compute-attributes COMPUTE_ATTRS Compute resource attributes.
25
- Comma-separated list of key=value.
26
- --compute-profile COMPUTE_PROFILE_NAME Name to search by
27
- --compute-profile-id COMPUTE_PROFILE_ID
28
- --compute-resource COMPUTE_RESOURCE_NAME Compute resource name
29
- --compute-resource-id COMPUTE_RESOURCE_ID
30
- --domain DOMAIN_NAME Domain name
31
- --domain-id DOMAIN_ID Numerical ID or domain name
32
- --enabled ENABLED One of true/false, yes/no, 1/0.
33
- Default: "true"
34
- --environment ENVIRONMENT_NAME Environment name
35
- --environment-id ENVIRONMENT_ID
36
- --hostgroup HOSTGROUP_NAME Hostgroup name
37
- --hostgroup-id HOSTGROUP_ID
38
- --hostgroup-title HOSTGROUP_TITLE Hostgroup title
39
- --image IMAGE_NAME Name to search by
40
- --image-id IMAGE_ID
41
- --interface INTERFACE Interface parameters.
42
- Comma-separated list of key=value.
43
- Can be specified multiple times.
44
- --ip IP not required if using a subnet with DHCP proxy
45
- --location LOCATION_NAME Location name
46
- --location-id LOCATION_ID
47
- --mac MAC required for managed host that is bare metal, not required if it’s a virtual machine
48
- --managed MANAGED One of true/false, yes/no, 1/0.
49
- Default: "true"
50
- --medium MEDIUM_NAME Medium name
51
- --medium-id MEDIUM_ID
52
- --model MODEL_NAME Model name
53
- --model-id MODEL_ID
54
- --name NAME
55
- --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
56
- --operatingsystem-id OPERATINGSYSTEM_ID
57
- --organization ORGANIZATION_NAME Organization name
58
- --organization-id ORGANIZATION_ID
59
- --owner OWNER_LOGIN Login of the owner
60
- --owner-id OWNER_ID ID of the owner
61
- --owner-type OWNER_TYPE Host’s owner type
62
- --parameters PARAMS Host parameters.
63
- Comma-separated list of key=value.
64
- --partition-table PARTITION_TABLE_NAME Partition table name
65
- --partition-table-id PARTITION_TABLE_ID
66
- --progress-report-id PROGRESS_REPORT_ID UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks
67
- --provision-method METHOD One of 'build', 'image'
68
- --puppet-ca-proxy PUPPET_CA_PROXY_NAME
69
- --puppet-ca-proxy-id PUPPET_CA_PROXY_ID
70
- --puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values.
71
- --puppet-classes PUPPET_CLASS_NAMES Comma separated list of values.
72
- --puppet-proxy PUPPET_PROXY_NAME
73
- --puppet-proxy-id PUPPET_PROXY_ID
74
- --realm REALM_NAME Name to search by
75
- --realm-id REALM_ID Numerical ID or realm name
76
- --root-password ROOT_PW required if host is managed and value is not inherited from host group or default password in settings
77
- --subnet SUBNET_NAME Subnet name
78
- --subnet-id SUBNET_ID
79
- --volume VOLUME Volume parameters
80
- Comma-separated list of key=value.
81
- Can be specified multiple times.
82
- -h, --help print help
18
+ --architecture ARCHITECTURE_NAME Architecture name
19
+ --architecture-id ARCHITECTURE_ID
20
+ --ask-root-password ASK_ROOT_PW One of true/false, yes/no, 1/0.
21
+ --autoheal AUTOHEAL Sets whether the Host will autoheal subscriptions upon checkin
22
+ One of true/false, yes/no, 1/0.
23
+ --build BUILD One of true/false, yes/no, 1/0.
24
+ --comment COMMENT Additional information about this host
25
+ --compute-attributes COMPUTE_ATTRS Compute resource attributes
26
+ Comma-separated list of key=value
27
+ --compute-profile COMPUTE_PROFILE_NAME Name to search by
28
+ --compute-profile-id COMPUTE_PROFILE_ID
29
+ --compute-resource COMPUTE_RESOURCE_NAME Compute resource name
30
+ --compute-resource-id COMPUTE_RESOURCE_ID
31
+ --config-group-ids CONFIG_GROUP_IDS IDs of associated config groups
32
+ Comma separated list of values. Values containing comma should be quoted or escaped with backslash
33
+ --config-groups CONFIG_GROUP_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash
34
+ --content-source CONTENT_SOURCE_NAME Content Source name
35
+ --content-source-id CONTENT_SOURCE_ID
36
+ --content-view CONTENT_VIEW_NAME Name to search by
37
+ --content-view-id CONTENT_VIEW_ID Content view numeric identifier
38
+ --domain DOMAIN_NAME Domain name
39
+ --domain-id DOMAIN_ID Numerical ID or domain name
40
+ --enabled ENABLED Include this host within Foreman reporting
41
+ One of true/false, yes/no, 1/0.
42
+ --environment ENVIRONMENT_NAME Environment name
43
+ --environment-id ENVIRONMENT_ID
44
+ --hostgroup HOSTGROUP_NAME Hostgroup name
45
+ --hostgroup-id HOSTGROUP_ID
46
+ --hostgroup-title HOSTGROUP_TITLE Hostgroup title
47
+ --hypervisor-guest-uuids HYPERVISOR_GUEST_UUIDS List of hypervisor guest uuids
48
+ Comma separated list of values. Values containing comma should be quoted or escaped with backslash
49
+ --image IMAGE_NAME Name to search by
50
+ --image-id IMAGE_ID
51
+ --installed-products-attributes INSTALLED_PRODUCTS_ATTRIBUTES List of products installed on the host
52
+ Comma separated list of values. Values containing comma should be quoted or escaped with backslash
53
+ --interface INTERFACE Interface parameters
54
+ Comma-separated list of key=value
55
+ Can be specified multiple times.
56
+ --ip IP Not required if using a subnet with DHCP proxy
57
+ --kickstart-repository REPOSITORY_NAME Kickstart repository name
58
+ --kickstart-repository-id KICKSTART_REPOSITORY_ID Repository Id associated with the kickstart repo used for provisioning
59
+ --lifecycle-environment LIFECYCLE_ENVIRONMENT_NAME Name to search by
60
+ --lifecycle-environment-id LIFECYCLE_ENVIRONMENT_ID ID of the environment
61
+ --location LOCATION_NAME Location name
62
+ --location-id LOCATION_ID
63
+ --location-title LOCATION_TITLE Location title
64
+ --mac MAC Required for managed host that is bare metal, not required if it's a
65
+ Virtual machine
66
+ --managed MANAGED True/False flag whether a host is managed or unmanaged. Note: this value
67
+ Also determines whether several parameters are required or not
68
+ One of true/false, yes/no, 1/0.
69
+ --medium MEDIUM_NAME Medium name
70
+ --medium-id MEDIUM_ID
71
+ --model MODEL_NAME Model name
72
+ --model-id MODEL_ID
73
+ --name NAME
74
+ --operatingsystem OPERATINGSYSTEM_TITLE Operating system title
75
+ --operatingsystem-id OPERATINGSYSTEM_ID
76
+ --organization ORGANIZATION_NAME Organization name
77
+ --organization-id ORGANIZATION_ID Organization ID
78
+ --organization-title ORGANIZATION_TITLE Organization title
79
+ --overwrite OVERWRITE One of true/false, yes/no, 1/0.
80
+ Default: "true"
81
+ --owner OWNER_LOGIN Login of the owner
82
+ --owner-id OWNER_ID ID of the owner
83
+ --owner-type OWNER_TYPE Host's owner type
84
+ Possible value(s): 'User', 'Usergroup'
85
+ --parameters PARAMS Host parameters
86
+ Comma-separated list of key=value
87
+ --partition-table PARTITION_TABLE_NAME Partition table name
88
+ --partition-table-id PARTITION_TABLE_ID
89
+ --product PRODUCT_NAME Name to search by
90
+ --product-id PRODUCT_ID Product numeric identifier
91
+ --progress-report-id PROGRESS_REPORT_ID UUID to track orchestration tasks status, GET
92
+ /api/orchestration/:UUID/tasks
93
+ --provision-method PROVISION_METHOD The method used to provision the host.
94
+ Possible value(s): 'build', 'image'
95
+ --puppet-ca-proxy PUPPET_CA_PROXY_NAME
96
+ --puppet-ca-proxy-id PUPPET_CA_PROXY_ID Puppet CA proxy ID
97
+ --puppet-class-ids PUPPET_CLASS_IDS Comma separated list of values. Values containing comma should be quoted or escaped with backslash
98
+ --puppet-classes PUPPET_CLASS_NAMES Comma separated list of values. Values containing comma should be quoted or escaped with backslash
99
+ --puppet-proxy PUPPET_PROXY_NAME
100
+ --puppet-proxy-id PUPPET_PROXY_ID Puppet proxy ID
101
+ --pxe-loader PXE_LOADER DHCP filename option (Grub2/PXELinux by default)
102
+ Possible value(s): 'None', 'PXELinux BIOS', 'PXELinux UEFI', 'Grub UEFI', 'Grub2 UEFI', 'Grub2 UEFI SecureBoot', 'Grub2 UEFI HTTP', 'Grub2 UEFI HTTPS', 'Grub2 UEFI HTTPS SecureBoot', 'iPXE Embedded', 'iPXE UEFI HTTP', 'iPXE Chain BIOS', 'iPXE Chain UEFI'
103
+ --realm REALM_NAME Name to search by
104
+ --realm-id REALM_ID Numerical ID or realm name
105
+ --release-version RELEASE_VERSION Release version for this Host to use (7Server, 7.1, etc)
106
+ --root-password ROOT_PW Required if host is managed and value is not inherited from host group or default password in settings
107
+ --service-level SERVICE_LEVEL Service level to be used for autoheal
108
+ --subnet SUBNET_NAME Subnet name
109
+ --subnet-id SUBNET_ID
110
+ --volume VOLUME Volume parameters
111
+ Comma-separated list of key=value
112
+ Can be specified multiple times.
113
+ -h, --help Print help
114
+
83
115
  ```
84
116
 
85
117
  Example
@@ -223,38 +255,41 @@ image_id
223
255
  ## VMware
224
256
  Available keys for `--compute-attributes`:
225
257
  ```
226
- cpus # cpu count
227
- corespersocket # number of cores per socket
228
- # (applicable to hardware versions < 10 only)
229
- memory_mb # integer number
230
- cluster # cluster id from VMware
231
- path # path to folder
232
- guest_id # guest OS id form VMware
233
- scsi_controller_type # id of the controller from VMware
234
- hardware_version # hardware version id from VMware
235
- start # Boolean, expressed as 0 or 1, whether to start the machine or not
258
+ cpus CPU count
259
+ corespersocket Number of cores per socket (applicable to hardware versions < 10 only)
260
+ memory_mb Integer number, amount of memory in MB
261
+ firmware automatic/bios/efi
262
+ cluster Cluster ID from VMware
263
+ resource_pool Resource Pool ID from VMware
264
+ path Path to folder
265
+ guest_id Guest OS ID form VMware
266
+ scsi_controller_type ID of the controller from VMware
267
+ hardware_version Hardware version ID from VMware
268
+ add_cdrom Must be a 1 or 0, Add a CD-ROM drive to the virtual machine
269
+ cpuHotAddEnabled Must be a 1 or 0, lets you add memory resources while the machine is on
270
+ memoryHotAddEnabled Must be a 1 or 0, lets you add CPU resources while the machine is on
271
+ start Must be a 1 or 0, whether to start the machine or not
272
+ annotation Annotation Notes
236
273
  ```
237
274
 
238
275
  Available keys for `--interface`:
239
276
  ```
240
277
  compute_type # Type of the network adapter, for example one of:
241
- # VirtualVmxnet
242
- # VirtualVmxnet2
243
278
  # VirtualVmxnet3
244
279
  # VirtualE1000
245
- # VirtualE1000e
246
- # VirtualPCNet32
247
280
  # See documentation center for your version of vSphere to find
248
281
  # more details about available adapter types:
249
282
  # https://www.vmware.com/support/pubs/
250
- compute_network # network id from VMware
283
+ compute_network # network ID from VMware
251
284
  ```
252
285
 
253
286
  Available keys for `--volume`:
254
287
  ```
255
- datastore # datastore id from VMware
256
288
  name
257
- size_gb # integer number
258
- thin # true/false
259
- eager_zero # true/false
289
+ storage_pod Storage Pod ID from VMware
290
+ datastore Datastore ID from VMware
291
+ size_gb Integer number, volume size in GB
292
+ thin true/false
293
+ eager_zero true/false
294
+ mode persistent/independent_persistent/independent_nonpersistent
260
295
  ```
data/doc/release_notes.md CHANGED
@@ -1,5 +1,17 @@
1
1
  Release notes
2
2
  =============
3
+ ### 0.15.0 (2018-10-24)
4
+ * Use SPDX 2.0 codes
5
+ * Provides a way of listing compute attribute values ([#3651](http://projects.theforeman.org/issues/3651))
6
+ * Foreman CLI command for BMC boot commands ([#24099](http://projects.theforeman.org/issues/24099))
7
+ * Update VMware helpers and host create page ([#25192](http://projects.theforeman.org/issues/25192))
8
+ * Enable structured formatters for refernces. ([#24980](http://projects.theforeman.org/issues/24980))
9
+ * Correct homepage and license in the gemspec
10
+ * Display Host Status in Hammer ([#20187](http://projects.theforeman.org/issues/20187))
11
+ * Subnet create/update should accept proxy names ([#20609](http://projects.theforeman.org/issues/20609))
12
+ * Add Cluster option to Hammer CR. ([#24748](http://projects.theforeman.org/issues/24748))
13
+ * Retain data while host update in hammer ([#20725](http://projects.theforeman.org/issues/20725))
14
+
3
15
  ### 0.14.0 (2018-08-27)
4
16
  * Add template combinations commands ([#3969](http://projects.theforeman.org/issues/3969))
5
17
  * Fix and extend tests for user update ([#23996](http://projects.theforeman.org/issues/23996))
@@ -108,29 +108,124 @@ module HammerCLIForeman
108
108
  build_options
109
109
  end
110
110
 
111
- class AvailableNetworksCommand < HammerCLIForeman::ListCommand
111
+ class AvailableClustersCommand < HammerCLIForeman::ListCommand
112
+ action :available_clusters
113
+ command_name 'clusters'
114
+
115
+ output do
116
+ field :id, _('Id')
117
+ field :name, _('Name')
118
+ end
112
119
 
113
- resource :compute_resources, :available_networks
120
+ build_options
121
+ end
122
+
123
+ class AvailableNetworksCommand < HammerCLIForeman::ListCommand
124
+ action :available_networks
114
125
  command_name 'networks'
115
- desc _("Show available networks")
126
+
127
+ output do
128
+ field :id, _('Id')
129
+ field :name, _('Name')
130
+ end
116
131
 
117
132
  build_options
133
+ end
118
134
 
119
- validate_options do
120
- any(:option_id, :option_name).required
135
+ class AvailableImagesCommand < HammerCLIForeman::ListCommand
136
+ action :available_images
137
+ command_name 'images'
138
+
139
+ output do
140
+ field :id, _('Id')
141
+ field :name, _('Name')
121
142
  end
122
143
 
123
- def request_params
124
- params = super
125
- params['id'] ||= get_identifier
126
- params
144
+ build_options
145
+ end
146
+
147
+ class AvailableFlavorsCommand < HammerCLIForeman::ListCommand
148
+ action :available_flavors
149
+ command_name 'flavors'
150
+
151
+ output do
152
+ field :id, _('Id')
153
+ field :name, _('Name')
127
154
  end
128
155
 
156
+ build_options
157
+ end
158
+
159
+ class AvailableFoldersCommand < HammerCLIForeman::ListCommand
160
+ action :available_folders
161
+ command_name 'folders'
162
+
129
163
  output do
130
- field :name, _("Name")
131
- field :id, _("Id")
164
+ field :id, _('Id')
165
+ field :name, _('Name')
166
+ end
167
+
168
+ build_options
169
+ end
170
+
171
+ class AvailableZonesCommand < HammerCLIForeman::ListCommand
172
+ action :available_zones
173
+ command_name 'zones'
174
+
175
+ output do
176
+ field :id, _('Id')
177
+ field :name, _('Name')
178
+ end
179
+
180
+ build_options
181
+ end
182
+
183
+ class AvailableResourcePoolsCommand < HammerCLIForeman::ListCommand
184
+ action :available_resource_pools
185
+ command_name 'resource-pools'
186
+
187
+ output do
188
+ field :id, _('Id')
189
+ field :name, _('Name')
190
+ end
191
+
192
+ build_options
193
+ end
194
+
195
+ class AvailableStorageDomainsCommand < HammerCLIForeman::ListCommand
196
+ action :available_storage_domains
197
+ command_name 'storage-domains'
198
+
199
+ output do
200
+ field :id, _('Id')
201
+ field :name, _('Name')
132
202
  end
133
203
 
204
+ build_options
205
+ end
206
+
207
+ class AvailableStoragePodsCommand < HammerCLIForeman::ListCommand
208
+ action :available_storage_pods
209
+ command_name 'storage-pods'
210
+
211
+ output do
212
+ field :id, _('Id')
213
+ field :name, _('Name')
214
+ end
215
+
216
+ build_options
217
+ end
218
+
219
+ class AvailableSecurityGroupsCommand < HammerCLIForeman::ListCommand
220
+ action :available_security_groups
221
+ command_name 'security-groups'
222
+
223
+ output do
224
+ field :id, _('Id')
225
+ field :name, _('Name')
226
+ end
227
+
228
+ build_options
134
229
  end
135
230
 
136
231
  autoload_subcommands
@@ -3,45 +3,49 @@ module HammerCLIForeman
3
3
  module VMware
4
4
  class HostHelpExtenstion
5
5
  INTERFACE_TYPES = %w(
6
- VirtualVmxnet,
7
- VirtualVmxnet2,
8
6
  VirtualVmxnet3,
9
- VirtualE1000,
10
- VirtualE1000e,
11
- VirtualPCNet32
7
+ VirtualE1000
12
8
  )
13
9
 
14
10
  def name
15
- _('VMWare')
11
+ _('VMware')
16
12
  end
17
13
 
18
14
  def host_create_help(h)
19
15
  h.section '--compute-attributes' do |h|
20
16
  h.list([
21
- ['cpus', _("Cpu count")],
22
- ['corespersocket', _("Number of cores per socket (applicable to hardware versions < 10 only)")],
23
- ['memory_mb', _("Integer number, amount of memory in MB")],
24
- ['cluster', _("Cluster id from VMware")],
25
- ['path', _("Path to folder")],
26
- ['guest_id', _("Guest OS id form VMware")],
27
- ['scsi_controller_type', _("Id of the controller from VMware")],
28
- ['hardware_version', _("Hardware version id from VMware")],
29
- ['start', _("Must be a 1 or 0, whether to start the machine or not")]
17
+ ['cpus', _('CPU count')],
18
+ ['corespersocket', _('Number of cores per socket (applicable to hardware versions < 10 only)')],
19
+ ['memory_mb', _('Integer number, amount of memory in MB')],
20
+ ['firmware', 'automatic/bios/efi'],
21
+ ['cluster', _('Cluster ID from VMware')],
22
+ ['resource_pool', _('Resource Pool ID from VMware')],
23
+ ['path', _('Path to folder')],
24
+ ['guest_id', _('Guest OS ID form VMware')],
25
+ ['scsi_controller_type', _('ID of the controller from VMware')],
26
+ ['hardware_version', _('Hardware version ID from VMware')],
27
+ ['add_cdrom', _('Must be a 1 or 0, Add a CD-ROM drive to the virtual machine')],
28
+ ['cpuHotAddEnabled', _('Must be a 1 or 0, lets you add memory resources while the machine is on')],
29
+ ['memoryHotAddEnabled', _('Must be a 1 or 0, lets you add CPU resources while the machine is on')],
30
+ ['start', _("Must be a 1 or 0, whether to start the machine or not")],
31
+ ['annotation', _("Annotation Notes")]
30
32
  ])
31
33
  end
32
34
  h.section '--interface' do |h|
33
35
  h.list([
34
36
  ['compute_type', interface_type_description(h)],
35
- ['compute_network', _('Network id from VMware')]
37
+ ['compute_network', _('Network ID from VMware')]
36
38
  ])
37
39
  end
38
40
  h.section '--volume' do |h|
39
41
  h.list([
40
42
  ['name'],
41
- ['datastore', _('Datastore id from VMware')],
42
- ['size_gb', _('Integer number, volume size in GB')],
43
- ['thin', 'true/false'],
44
- ['eager_zero', 'true/false']
43
+ ['storage_pod', _('Storage Pod ID from VMware')],
44
+ ['datastore', _('Datastore ID from VMware')],
45
+ ['size_gb', _('Integer number, volume size in GB')],
46
+ ['thin', 'true/false'],
47
+ ['eager_zero', 'true/false'],
48
+ ['mode', 'persistent/independent_persistent/independent_nonpersistent']
45
49
  ])
46
50
  end
47
51
  end
@@ -53,7 +57,7 @@ module HammerCLIForeman
53
57
  _('Type of the network adapter, for example one of:'),
54
58
  h.indent(INTERFACE_TYPES),
55
59
  _("See documentation center for your version of vSphere to find more details about available adapter types:"),
56
- h.indent("https://www.vmware.com/support/pubs/")
60
+ h.indent('https://www.vmware.com/support/pubs/')
57
61
  ].join("\n")
58
62
  end
59
63
  end