Finding out what install options were used

I installed Foreman on a RHEL host using the foreman-installer, with some
options. However, I can't remember anymore what options I gave.
Is there a way to find out what command line options where given to a
Foreman install on a particular host?

Krist

After every foreman-installer run the resulting set of answers is stored in
answer file usually in /usr/share/foreman-installer/config/answers.yaml on deb
based distros and in /etc/foreman/foreman-installer-answers.yaml on rpm based
distros.

Also you may find log useful. By default, it should be in /var/log/foreman-
installer/*

··· On Tuesday 10 of December 2013 06:48:38 Krist van Besien wrote: > I installed Foreman on a RHEL host using the foreman-installer, with some > options. However, I can't remember anymore what options I gave. > Is there a way to find out what command line options where given to a > Foreman install on a particular host? > > Krist


Marek

I found that file. But it list all options, not just the ones I changed. Is
there a "default" answers file I can compare it with? I need to find out
what I typed in on the command line.

Krist

··· On Wednesday, December 11, 2013 9:45:38 AM UTC+1, Marek Hulán wrote: > > > After every foreman-installer run the resulting set of answers is stored > in > answer file usually in /usr/share/foreman-installer/config/answers.yaml on > deb > based distros and in /etc/foreman/foreman-installer-answers.yaml on rpm > based > distros. >

The trick that Marek did not tell you is the fact that if you now re-run
the installer, it does this with the all parameters you provided. You do
not need to put these parameters again.

If your motivation is to note the parameters, that would be more tough I
guess :slight_smile: Diff against default parameters would work, the answers.yaml
is in the RPM I think. If not, install a new server using defaults and
then copy out the file and compare.

LZ

··· On Wed, Dec 11, 2013 at 02:53:02AM -0800, Krist van Besien wrote: > > > On Wednesday, December 11, 2013 9:45:38 AM UTC+1, Marek Hul�n wrote: > > > > > > After every foreman-installer run the resulting set of answers is stored > > in > > answer file usually in /usr/share/foreman-installer/config/answers.yaml on > > deb > > based distros and in /etc/foreman/foreman-installer-answers.yaml on rpm > > based > > distros. > > > > I found that file. But it list all options, not just the ones I changed. Is > there a "default" answers file I can compare it with? I need to find out > what I typed in on the command line. > > Krist > > > -- > 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. > For more options, visit https://groups.google.com/groups/opt_out.


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Actually I already knew that. My problem is not how to repeat the
installation.
My problem is that I need to document it. And the requirement is for very
detailed documenttion.
I know I should have written it down when I did the installation…

I vaguely remember a reference to a command that generates an answers.yaml
file. But can't find it.

Krist

··· On Thursday, December 12, 2013 1:27:38 PM UTC+1, Lukas Zapletal wrote: > > The trick that Marek did not tell you is the fact that if you now re-run > the installer, it does this with the all parameters you provided. You do > not need to put these parameters again. >

I see,

Another alternative might be to copy the answers file to the new host
being installed and that should do it too.

LZ

··· On Fri, Dec 13, 2013 at 02:20:10AM -0800, Krist van Besien wrote: > > > On Thursday, December 12, 2013 1:27:38 PM UTC+1, Lukas Zapletal wrote: > > > > The trick that Marek did not tell you is the fact that if you now re-run > > the installer, it does this with the all parameters you provided. You do > > not need to put these parameters again. > > > > Actually I already knew that. My problem is not how to repeat the > installation. > My problem is that I need to document it. And the requirement is for very > detailed documenttion. > I know I should have written it down when I did the installation... > > I vaguely remember a reference to a command that generates an answers.yaml > file. But can't find it. > > Krist >


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

Which I consider even more safe, since default values may be different on
different machines. However if you just need to document and you no longer have
access to .bash_history then diffing the default values stored on another
machine is the only way I can imagine. The RPM afaik contains empty answer file
with all modules enabled which means default values.

··· On Friday 13 of December 2013 11:36:50 Lukas Zapletal wrote: > I see, > > Another alternative might be to copy the answers file to the new host > being installed and that should do it too.


Marek

LZ

On Fri, Dec 13, 2013 at 02:20:10AM -0800, Krist van Besien wrote:

On Thursday, December 12, 2013 1:27:38 PM UTC+1, Lukas Zapletal wrote:

The trick that Marek did not tell you is the fact that if you now re-run
the installer, it does this with the all parameters you provided. You do
not need to put these parameters again.

Actually I already knew that. My problem is not how to repeat the
installation.
My problem is that I need to document it. And the requirement is for very
detailed documenttion.
I know I should have written it down when I did the installation…

I vaguely remember a reference to a command that generates an answers.yaml
file. But can’t find it.

Krist