Foreman 1.1 installer notes on Ubuntu 12.04 svr

> I just tried to enrole in Redmine so I could put in a ticket on the new
> version of the Foreman 1.1 installer, just a few things I noticed while
> installing on Ubuntu 12.04 server. It's been over an hour, I assume I
> fat-fingered something while enrolling, I'll have to deal with that, but
> meanwhile, I thought I would post my findings here:
>
> This was not on a "real" machine, but in a VM (virtualbox if it matters).

Thanks for taking the time to give feedback, it's much appreciated.

> 1. the package rubygems needs to be installed for the
> generate_answers.rb script to successfully run, but this was not part of
> the instructions. IMHO, this should be installed as a required package.

We just had this reported in redmine too:

It should be optional, so the script needs fixing.

> 2. Script, generate_answers.rb must be run after "cd
> /usr/share/foreman-installer", or it won't run. Not running from this
> directory results in an error message:

Fix is about to be merged for this:

> 3. During run of puppet, as part of running generate_answers.rb, install
> fails with message:
>
> "err: Removing mount files: /etc/puppet/files does not exist or is
> not a directory."
>
> It's a minor issue, but could be confusing. Doesn't cause failure
> downstream.

Interesting, looks like it was a problem in the Debian Puppet package,
so not something we can change: http://projects.puppetlabs.com/issues/15024

> 4. During run of puppet, as part of running generate_answers.rb, install
> fails with message:
>
> "err:
> /Stage[main]/Puppet::Server::Config/File[/usr/share/puppet/modules]/ensure:
> change from absent to directory failed: Cannot create
> /usr/share/puppet/modules; parent directory /usr/share/puppet does not
> exist"
>
> This is a result of /usr/share/puppet directory not existing. It
> causes several other issues down stream.

Oops, that was a recent change I'd made - the RPM does provide that
directory. I hadn't realised we were managing it either, will fix with
a mkdir -p.

Cheers!

··· On 12/02/13 18:03, Ronald Wolf wrote:


Dominic Cleal
Red Hat Engineering