Provision Template Variable Defaults?

Greetings,
Please forgive my ignorance here, but I'm having a little
trouble/confusion determining where/how some of the variables defined in
stock provisioning templates obtain their default values. For example,
I've been working through Solaris provisioning, the default jumpstart
provision template looks like:

install_type <%= @install_type %>
partitioning explicit
<%= @disk %>
<% if @host.use_image -%>
archive_location nfs <%=@archive_location%>
<% else -%>
system_type <%= @system_type %>
package <%= @packages %> add
cluster <%= @cluster %>
<% end -%>

I like that @packages and @cluster are used as variables here, but where
the defaults come from? And how to override those default values. Other
variables are more intuitive, like @disk to reference the partition
template or @host.use_image which I assume it relates to the Host /
Operating System / OS Image checkbox.

Thanks for your patience and consideration! :slight_smile:

A quick git grep brings me here:

··· On 13 June 2013 16:39, Sean Alderman wrote:

I like that @packages and @cluster are used as variables here, but where
the defaults come from? And how to override those default values. Other
variables are more intuitive, like @disk to reference the partition
template or @host.use_image which I assume it relates to the Host /
Operating System / OS Image checkbox.

Thanks for your patience and consideration! :slight_smile:

I’m not sure how easy they’ll be to override in the UI though…

Greg

Interesting. Ok, so I'll make new templates instead of fiddling with those
values.

Thank you!

··· -- Sean M. Alderman Senior Engineer, UDit Systems Integration and Engineering University of Dayton

On Thu, Jun 13, 2013 at 12:36 PM, Greg Sutcliffe greg.sutcliffe@gmail.comwrote:

On 13 June 2013 16:39, Sean Alderman salderman1@udayton.edu wrote:

I like that @packages and @cluster are used as variables here, but
where the defaults come from? And how to override those default values.
Other variables are more intuitive, like @disk to reference the partition
template or @host.use_image which I assume it relates to the Host /
Operating System / OS Image checkbox.

Thanks for your patience and consideration! :slight_smile:

A quick git grep brings me here:
https://github.com/theforeman/foreman/blob/develop/app/controllers/unattended_controller.rb#L187 -
I’m not sure how easy they’ll be to override in the UI though…

Greg


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.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.