|
|
@ -24,6 +24,7 @@ author:
|
|
|
|
- Abhijeet Kasurde (@Akasurde)
|
|
|
|
- Abhijeet Kasurde (@Akasurde)
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- Tested on vSphere 6.5
|
|
|
|
- Tested on vSphere 6.5
|
|
|
|
|
|
|
|
- If source package name is not available then fact is populated as null.
|
|
|
|
requirements:
|
|
|
|
requirements:
|
|
|
|
- python >= 2.6
|
|
|
|
- python >= 2.6
|
|
|
|
- PyVmomi
|
|
|
|
- PyVmomi
|
|
|
@ -75,7 +76,9 @@ host_service_facts:
|
|
|
|
"policy": "on",
|
|
|
|
"policy": "on",
|
|
|
|
"required": false,
|
|
|
|
"required": false,
|
|
|
|
"running": true,
|
|
|
|
"running": true,
|
|
|
|
"uninstallable": false
|
|
|
|
"uninstallable": false,
|
|
|
|
|
|
|
|
"source_package_name": "esx-base",
|
|
|
|
|
|
|
|
"source_package_desc": "This VIB contains all of the base functionality of vSphere ESXi."
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"key": "TSM",
|
|
|
|
"key": "TSM",
|
|
|
@ -83,7 +86,9 @@ host_service_facts:
|
|
|
|
"policy": "off",
|
|
|
|
"policy": "off",
|
|
|
|
"required": false,
|
|
|
|
"required": false,
|
|
|
|
"running": false,
|
|
|
|
"running": false,
|
|
|
|
"uninstallable": false
|
|
|
|
"uninstallable": false,
|
|
|
|
|
|
|
|
"source_package_name": "esx-base",
|
|
|
|
|
|
|
|
"source_package_desc": "This VIB contains all of the base functionality of vSphere ESXi."
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -116,8 +121,8 @@ class VmwareServiceManager(PyVmomi):
|
|
|
|
uninstallable=service.uninstallable,
|
|
|
|
uninstallable=service.uninstallable,
|
|
|
|
running=service.running,
|
|
|
|
running=service.running,
|
|
|
|
policy=service.policy,
|
|
|
|
policy=service.policy,
|
|
|
|
source_package_name=service.sourcePackage.sourcePackageName if service.sourcePackage else 'NA',
|
|
|
|
source_package_name=service.sourcePackage.sourcePackageName if service.sourcePackage else None,
|
|
|
|
source_package_desc=service.sourcePackage.description if service.sourcePackage else 'NA',
|
|
|
|
source_package_desc=service.sourcePackage.description if service.sourcePackage else None,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
hosts_facts[host.name] = host_service_facts
|
|
|
|
hosts_facts[host.name] = host_service_facts
|
|
|
|