On 07/04/17 04:30, Chi Fu wrote:
> Hi all,
> 
> I wonder if there is a host parameter -- Boolean to tell whether the
> host being rendered is a virtual machine or bare-metal.  I would like to
> use it in partitioning script to automatically give 'install-disk' a
> value that matches. 

<% if @host.compute_resource -%>
virtual
<% else -%>
physical
<% end -%>

-- 
Dominic Cleal
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to