I have built an automatic installation system for building nodes from bare metal, it produces a pretty basic install, then installs puppet and contacts the puppetmaster for the rest of the configuration. What I would like to be able to do is inject a question into the preseed such that I could ask "what is the role of this server?" which in turn would just write the value to a temporary file, that facter would parse and include in the puppet catalog run.
So Basically, ask a question during install, provide a list of available answers and write the response to a file.
is that do-able?