Johannes Kastl schrieb:

> Then I cloned the "Preseed default finish" template and added these
> commands, but this resulted in an error during preseed, although the
> error shows the previous wget command returning an error.

I retested in the "Preseed default finish" and it worked. I'll try to
put it into a snippet and add it conditionally, but basically this is
the lines I now have (with some context before and after):

> <%
>   # safemode renderer does not support unary negation
>   pm_set = @host.puppetmaster.empty? ? false : true
>   puppet_enabled = pm_set || @host.param_true?('force-puppet')
>   salt_enabled = @host.params['salt_master'] ? true : false
>   chef_enabled = @host.respond_to?(:chef_proxy) && @host.chef_proxy
> %>
> 
> /bin/sed -i".BAK" 's/vt_handoff="1"/vt_handoff="0"/' /etc/grub.d/10_linux
> /usr/sbin/update-grub
> 
> <% subnet = @host.subnet -%>

Johannes

-- 
Johannes Kastl
Linux Consultant & Trainer
Tel.: +49 (0) 151 2372 5802
Mail: [email protected]

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-- 
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