mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
Merge pull request #2175 from niusmallnan/issues-2168
Only enable open-vm-tools serivce for vmware
This commit is contained in:
@@ -486,9 +486,10 @@ func enableHypervisorService(cfg *config.CloudConfig, hypervisorName string) {
|
||||
return
|
||||
}
|
||||
|
||||
// only enable open-vm-tools for vmware
|
||||
// these services(xenhvm-vm-tools, kvm-vm-tools, hyperv-vm-tools and bhyve-vm-tools) don't exist yet
|
||||
if hypervisorName == "vmware" {
|
||||
hypervisorName = "open"
|
||||
}
|
||||
serviceName := hypervisorName + "-vm-tools"
|
||||
if !cfg.Rancher.HypervisorService {
|
||||
log.Infof("Skipping %s as `rancher.hypervisor_service` is set to false", serviceName)
|
||||
@@ -505,4 +506,5 @@ func enableHypervisorService(cfg *config.CloudConfig, hypervisorName string) {
|
||||
// } else {
|
||||
// log.Infof("Skipping %s, can't get %s.yml file", serviceName, serviceName)
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user