Generate manifest for automated installation

I've previously installed Foreman using the installer, but I now want to
move to being able to automate the setup for testing and reproducibility
using theforeman/foreman module in Puppet. Is there a way to find out which
answers are different from the defaults in foreman-installer's saved
configurations? Doing a diff on
/etc/foreman-installer/scenarios.d/foreman-answers.yaml and
/usr/share/foreman-installer/config/foreman-answers.yaml didn't seem to
yield anything particularly useful.

I haven't made many changes through the web interface to the configuration,
and I don't want to be including lots of answers that are actually how it
would be set up if I didn't specify them.

Thanks,

Iain Hallam.

Foreman-installer writes all the values used even if they're defaults (this
is to protect against changing defaults on upgrade) so one option would be
to run a default install and copy the resulting answers file as a base for
your diff.

Greg

··· On 29 September 2016 at 12:36, Iain Hallam wrote:

I’ve previously installed Foreman using the installer, but I now want to
move to being able to automate the setup for testing and reproducibility
using theforeman/foreman module in Puppet. Is there a way to find out which
answers are different from the defaults in foreman-installer’s saved
configurations? Doing a diff on /etc/foreman-installer/
scenarios.d/foreman-answers.yaml and /usr/share/foreman-installer/config/foreman-answers.yaml
didn’t seem to yield anything particularly useful.

I haven’t made many changes through the web interface to the
configuration, and I don’t want to be including lots of answers that are
actually how it would be set up if I didn’t specify them.