|
19 | 19 | # - `create` creates a new snapshot |
20 | 20 | # - 'delete' deletes snapshots by matching the `snapshot_name` passed in. |
21 | 21 | # |
22 | | -# @param [Optional[Enum['name', 'uri']]] target_name_property |
| 22 | +# @param [Optional[Enum['hostname', 'name', 'uri']]] target_name_property |
23 | 23 | # Determines what property on the Target object will be used as the VM name when |
24 | 24 | # mapping the Target to a VM in vSphere. |
25 | 25 | # |
|
28 | 28 | # list is set as the `uri` and not the `name`, in this case `name` will be `undef`. |
29 | 29 | # - `name` : use the `name` property on the Target, this is not preferred because |
30 | 30 | # `name` is usually a short name or nickname. |
| 31 | +# - `hostname`: use the `hostname` value to use host component of `uri` property on the Target |
| 32 | +# this can be useful if VM name doesn't include domain name |
31 | 33 | # |
32 | 34 | # @param [String[1]] vsphere_host |
33 | 35 | # Hostname of the vSphere server that we're going to use to create snapshots via the API. |
|
63 | 65 | plan patching::snapshot_vmware ( |
64 | 66 | TargetSpec $targets, |
65 | 67 | Enum['create', 'delete'] $action, |
66 | | - Optional[Enum['name', 'uri']] $target_name_property = undef, |
| 68 | + Optional[Enum['hostname', 'name', 'uri']] $target_name_property = undef, |
67 | 69 | String[1] $vsphere_host = get_targets($targets)[0].vars['vsphere_host'], |
68 | 70 | String[1] $vsphere_username = get_targets($targets)[0].vars['vsphere_username'], |
69 | 71 | String[1] $vsphere_password = get_targets($targets)[0].vars['vsphere_password'], |
|
0 commit comments