Foreman auto-populate fields when provisioning hosts

When adding a new host into foreman, is there a good way to make foreman
auto-fill fields where there is only one possible non-blank value? I'm
trying to reduce the number of clicks needed for building a host. :slight_smile:

In the New Host screen, once I enter a hostname, and select the host's
Organization and Location, many of the other remaining fields such as
"Environment", "PuppetCA" and "Puppet Master" only have one possible value,
so foreman should be able to auto populate a lot of information based on my
previous choices without me having to click on them and continue.

I see that this happens in certain sections of foreman, such as selecting
an operating system and having the media and partition table auto-fill, but
not everywhere.

I'm curious if there is a plugin to help with this, or pointers on how best
to accomplish this on my own.

Thanks

Bill

I'd actually like to remove this behaviour from the parts of the form
that do this today, since when editing a host it can result in some
really surprising changes.

The solution to this in Foreman is to define a host group, which can
include nearly all of the attributes for a new host and then select this
to populate the entire form.

ยทยทยท On 04/02/14 18:23, Bill Sirinek wrote: > > When adding a new host into foreman, is there a good way to make foreman > auto-fill fields where there is only one possible non-blank value? I'm > trying to reduce the number of clicks needed for building a host. :) > > In the New Host screen, once I enter a hostname, and select the host's > Organization and Location, many of the other remaining fields such as > "Environment", "PuppetCA" and "Puppet Master" only have one possible > value, so foreman should be able to auto populate a lot of information > based on my previous choices without me having to click on them and > continue. > > I see that this happens in certain sections of foreman, such as > selecting an operating system and having the media and partition table > auto-fill, but not everywhere. > > I'm curious if there is a plugin to help with this, or pointers on how > best to accomplish this on my own.

โ€“
Dominic Cleal
Red Hat Engineering