Automating foreman install with mysql backend

I am writing a script to install foreman with the foreman installer and
have a few questions. I am installing foreman, foreman-proxy, passenger,
puppet all on one box in Centos 6.3.

  1. For a mysql backend do I need to install foreman-mysql connector
    packages from repo to make the database backend connection?

  2. Is there an existing script that someone has created that installs all
    in one box from foreman git installer and uses mysql backend already.
    Config is not that straight forward and would like to know if there is
    something out there already.

Thanks,

Dominic

> I am writing a script to install foreman with the foreman installer and have
> a few questions. I am installing foreman, foreman-proxy, passenger, puppet
> all on one box in Centos 6.3.
>
> 1) For a mysql backend do I need to install foreman-mysql connector packages
> from repo to make the database backend connection?

Not if you're running from git, only if it's a package-only install.

> 2) Is there an existing script that someone has created that installs all in
> one box from foreman git installer and uses mysql backend already. Config
> is not that straight forward and would like to know if there is something
> out there already.

The foreman-installer does most of that, and the remaining steps
aren't huge, so you might best building on top of the installer.

The installer will install the packages, which puts the code in
/usr/share/foreman. My normal method of getting a git install running
is to use the installer and then replace /usr/share/foreman with a git
clone. Thus you get all the benefits of the installer handling the
small, fiddly stuff that is easily missed, but running the latest
code. Don't forget to do bundle install.

As for the database, it's easy to alter the database.yml after the
installer has finished setting up sqlite3. If you do this after the
above step, then you'll have db gems, and db:migrate should be fine.

I know a few people were trying to add mysql/psql support to the
installer, so you could also contribute there.

Hope that helps.

··· On 16 January 2013 15:22, Dominic Kaiser wrote:

I am doing some work on this here:

The goal is to automate installation of foreman as ENC on a mysql
server. It also uses the percona module to setup this database on
localhost. For having the database on another host, some more work
will have to be done (a parameter here and there). You can use the
code as reference.

I'm hoping on finishing this up somewhere this week and get it
documented/blogged about or have a working vagrant-demo-setup.

It contains references to clones of the foreman, puppet and
foreman_proxy puppet modules. I still have to see what can be merged
with upstream.

Cheers.

Jan.

··· On 01/16/2013 04:22 PM, Dominic Kaiser wrote: > I am writing a script to install foreman with the foreman installer > and have a few questions. I am installing foreman, foreman-proxy, > passenger, puppet all on one box in Centos 6.3. > > 1) For a mysql backend do I need to install foreman-mysql > connector packages from repo to make the database backend > connection? > > 2) Is there an existing script that someone has created that > installs all in one box from foreman git installer and uses mysql > backend already. Config is not that straight forward and would > like to know if there is something out there already. > > Thanks, > > Dominic > > -- You received this message because you are subscribed to the > Google Groups "Foreman users" group. To post to this group, send > email to foreman-users@googlegroups.com. To unsubscribe from this > group, send email to foreman-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/foreman-users?hl=en.