Feature #1140

Using Host template variables in contextualization

Added by Emmanuel Mathot over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:02/23/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Core & System
Target version:Release 3.4
Resolution:wontfix Pull request:

Description

As per Virtual Network, Image and User, there should be a way to get the host template variables.

In our case, we have VMWare and KVM mixed host and during the contextualization, we have to install either the VMWare tools or another script. Thus it would be very useful to be able to put this in the Virtual Machine Template:

CONTEXT=[
FILES="/context/hypervisors/$HOST[HYPERVISOR]-install.sh /context/hypervisors/$HOST[HYPERVISOR].tgz",
HOST_HYPERVISOR="$HOST[HYPERVISOR]"
]

History

#1 Updated by Ruben S. Montero over 9 years ago

  • Status changed from New to Closed
  • Resolution set to wontfix

Context is generated when the VM is created, and before the VM is assigned to a host. Anyway, the contextualization process happens in the target host so any host information can be retrieved there.

Closing this one

Also available in: Atom PDF