Ability to specify a specific "boot local disk" template to use when server is marked built?

Currently have 2 build methods (pxelinux and i/gpxe), when leveraging ipxe
would like to use a different template to replace pxelinux.cfg/<mac> when
server is marked built? Is that possible, maybe sending specific template
name with /unattended/built?token=…??

I'm able to use "if/the/else" syntax to check operatingsystem name… is
there a way to say "if operatingsystem.name starts with "xyz" then do …
I see I can use "==" for specific name, but I want to be less specific like
=~ /xyz/.

··· On Friday, May 15, 2015 at 4:15:52 PM UTC-4, Andrew Blatt wrote: > > Currently have 2 build methods (pxelinux and i/gpxe), when leveraging ipxe > would like to use a different template to replace pxelinux.cfg/ when > server is marked built? Is that possible, maybe sending specific template > name with /unattended/built?token=...?? >

<% if @host.os.name.start_with? 'xyz' %> should work. Also =~ /xyz/ for
regexes.

··· -- Dominic Cleal Red Hat Engineering

On 18/05/15 14:05, Andrew Blatt wrote:

I’m able to use “if/the/else” syntax to check operatingsystem name…
is there a way to say "if operatingsystem.name starts with “xyz” then do …
I see I can use “==” for specific name, but I want to be less specific
like =~ /xyz/.

On Friday, May 15, 2015 at 4:15:52 PM UTC-4, Andrew Blatt wrote:

Currently have 2 build methods (pxelinux and i/gpxe), when
leveraging ipxe would like to use a different template to replace
pxelinux.cfg/<mac> when server is marked built?  Is that possible,
maybe sending specific template name with /unattended/built?token=...??


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 foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Worked great, thank you.

··· On Tuesday, May 19, 2015 at 6:01:50 AM UTC-4, Dominic Cleal wrote: > > <% if @host.os.name.start_with? 'xyz' %> should work. Also =~ /xyz/ for > regexes. > > -- > Dominic Cleal > Red Hat Engineering > > On 18/05/15 14:05, Andrew Blatt wrote: > > I'm able to use "if/the/else" syntax to check operatingsystem name.. > > is there a way to say "if operatingsystem.name starts with "xyz" then > do ... > > I see I can use "==" for specific name, but I want to be less specific > > like =~ /xyz/. > > > > On Friday, May 15, 2015 at 4:15:52 PM UTC-4, Andrew Blatt wrote: > > > > Currently have 2 build methods (pxelinux and i/gpxe), when > > leveraging ipxe would like to use a different template to replace > > pxelinux.cfg/ when server is marked built? Is that possible, > > maybe sending specific template name with > /unattended/built?token=...?? > > > > -- > > 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 foreman-user...@googlegroups.com > > <mailto:foreman-users+unsubscribe@googlegroups.com >. > > To post to this group, send email to forema...@googlegroups.com > > > <mailto:forema...@googlegroups.com >. > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > >