Last active
December 18, 2015 17:28
-
-
Save sigio/5818419 to your computer and use it in GitHub Desktop.
Ansible-provisioning patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/library/virt_guest b/library/virt_guest | |
index e139726..9d9adb9 100755 | |
--- a/library/virt_guest | |
+++ b/library/virt_guest | |
@@ -55,8 +55,7 @@ examples: | |
requirements: [ "libvirt" ] | |
notes: | |
- Run this on the libvirt host. | |
- - This returns a provisioning_status variable you can register to create groups. | |
- Possible values are: provisioned, unprovisioned, absent | |
+ - This returns a provisioning_status variable you can register to create groups. Possible values are: provisioned, unprovisioned, absent | |
''' | |
import sys | |
diff --git a/library/vsphere_config b/library/vsphere_config | |
index 60c257e..f2af633 100755 | |
--- a/library/vsphere_config | |
+++ b/library/vsphere_config | |
@@ -52,8 +52,8 @@ options: | |
examples: | |
- description: Modify guest notes | |
code: | | |
- - local_action: vsphere_facts host=$esxserver login=$esxlogin password=$esxpassword guest=$inventory_hostname_short notes="$inventory_hostname_short $cmdb_applications\n$cmdb_primaryfunction" | |
- only_if: "'$cmdb_hwmodel'.startswith('VMWare ') | |
+ - local_action: vsphere_facts host=$esxserver login=$esxlogin password=$esxpassword guest=$inventory_hostname_short notes="$inventory_hostname_short $cmdb_applications $cmdb_primaryfunction" | |
+ only_if: "'$cmdb_hwmodel'.startswith('VMWare ')" | |
notes: | |
- This module ought to be run from a system that can access vSphere directly. | |
Either by using local_action, or using delegate_to. | |
diff --git a/library/vsphere_guest b/library/vsphere_guest | |
index 18e667f..aec7c83 100755 | |
--- a/library/vsphere_guest | |
+++ b/library/vsphere_guest | |
@@ -132,8 +132,7 @@ options: | |
default: null | |
guestosid: | |
description: | |
- - A vmware guest needs to have a specific OS identifier set on it during creation. You can find your os guestosid at the following URL: | |
- http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html | |
+ - A vmware guest needs to have a specific OS identifier set on it during creation. You can find your os guestosid at the following URL: http://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.GuestOsDescriptor.GuestOsIdentifier.html | |
required: true | |
default: null | |
# informational: requirements for nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment