Problem with snippet

Hi,

I've got some problem with a snippet and I hope somebody can helps me.

I have a group : client-group with the parameter "activation_key".

I want to install client1.example.com so my client will inherit all
parameters (and activation_key) from the client-group.

The kickstart provision template include :

spacewalk enrollment

<% if @host.params['activation_key'] -%>
<% snippets "redhat_register" %>
<%end -%>

but I can't see the the spacewalk enrollment in the provisioning preview.

Is it normal ? What is going wrong ?

Thanks for your help and sorry for my bad english …

Hello,

try changing
<% snippets "redhat_register" %>

to
<%= snippets "redhat_register" %>

note the equal sign. Hope this helps.

··· On Friday 05 of September 2014 23:20:24 James James wrote: > Hi, > > I've got some problem with a snippet and I hope somebody can helps me. > > I have a group : client-group with the parameter "activation_key". > > I want to install client1.example.com so my client will inherit all > parameters (and activation_key) from the client-group. > > The kickstart provision template include : > > # spacewalk enrollment > <% if @host.params['activation_key'] -%> > <% snippets "redhat_register" %> > <%end -%> > > but I can't see the the spacewalk enrollment in the provisioning preview. > > Is it normal ? What is going wrong ? > > Thanks for your help and sorry for my bad english ...


Marek