Foreman admin password

Hi,

I just installed foreman 1.6 using the "Getting Started" guide. I cannot
login to the foreman web portal. Also if I used the standard installation
foreman-postgresql module seems block me out of the existing db by
overwriting a bunch of stuff including the listen address and access rules
pg_hba.

root@puppet-master:~# puppet resource package foreman

package { 'foreman':

ensure => '1.6.1-1',

}

root@puppet-master:~# puppet resource package foreman-postgresql

package { 'foreman-postgresql':

ensure => '1.6.1-1',

}

Could you please help out or advise me with appropriate documentation? foreman-debug-ayp97.tar.xz
was uploaded to the Support rsync server that you have, in case it helps
you.

Thanks.

> Hi,
>
>
> I just installed foreman 1.6 using the "Getting Started" guide. I cannot
> login to the foreman web portal.

The admin password is given at the end of the install, you can reset it
by running:

foreman-rake permissions:reset

> Also if I used the standard installation foreman-postgresql module
> seems block me out of the existing db by overwriting a bunch of stuff
> including the listen address and access rules pg_hba.

To use an existing psql database, you'd have to tell Foreman to not
manage the DB and give it connection info. foreman-installer help has
more info on the db options.

··· On Fri, Nov 14, 2014 at 02:32:02PM -0800, Jerry George wrote:

root@puppet-master:~# puppet resource package foreman

package { ‘foreman’:

ensure => ‘1.6.1-1’,

}

root@puppet-master:~# puppet resource package foreman-postgresql

package { ‘foreman-postgresql’:

ensure => ‘1.6.1-1’,

}

Could you please help out or advise me with appropriate documentation? foreman-debug-ayp97.tar.xz
was uploaded to the Support rsync server that you have, in case it helps
you.

Thanks.


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/d/optout.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters

Thanks Stephen. That worked!

Quick question, currently the postgresql puppet manifests packaged with the
foreman-postgresql installer resets the listen address for postgres and its
associated permissions, should configure these via the foreman interactive
installer or should I manually edit the puppet manifests?

··· On Saturday, November 15, 2014 7:47:17 AM UTC-5, Stephen Benjamin wrote: > > On Fri, Nov 14, 2014 at 02:32:02PM -0800, Jerry George wrote: > > Hi, > > > > > > I just installed foreman 1.6 using the "Getting Started" guide. I cannot > > login to the foreman web portal. > > The admin password is given at the end of the install, you can reset it > by running: > > foreman-rake permissions:reset > > > Also if I used the standard installation foreman-postgresql module > > seems block me out of the existing db by overwriting a bunch of stuff > > including the listen address and access rules pg_hba. > > To use an existing psql database, you'd have to tell Foreman to not > manage the DB and give it connection info. foreman-installer help has > more info on the db options. > > > root@puppet-master:~# puppet resource package foreman > > > > package { 'foreman': > > > > ensure => '1.6.1-1', > > > > } > > > > root@puppet-master:~# puppet resource package foreman-postgresql > > > > package { 'foreman-postgresql': > > > > ensure => '1.6.1-1', > > > > } > > > > > > Could you please help out or advise me with appropriate documentation? > foreman-debug-ayp97.tar.xz > > was uploaded to the Support rsync server that you have, in case it helps > > you. > > > > > > Thanks. > > > > -- > > 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-user...@googlegroups.com . > > To post to this group, send email to forema...@googlegroups.com > . > > Visit this group at http://groups.google.com/group/foreman-users. > > For more options, visit https://groups.google.com/d/optout. > > -- > Stephen Benjamin > > ______________________________________________________ > Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn > Handelsregister: Amtsgericht München, HRB 153243 > Geschäftsführer: Charles Cachera, Michael Cunningham, > Michael O'Neill, Charles Peters > > >

To detail further the database.yml currently match the IP address I would
like postgresql to listen on,

production:

adapter: postgresql

host: 172.16.15.171

database: foreman

username: foreman

However, the foreman-installer -i seem to ignore this or perhaps am I
missing something.

Thanks,
Jerry

··· On Saturday, November 15, 2014 3:24:38 PM UTC-5, Jerry George wrote: > > Thanks Stephen. That worked! > > Quick question, currently the postgresql puppet manifests packaged with > the foreman-postgresql installer resets the listen address for postgres and > its associated permissions, should configure these via the foreman > interactive installer or should I manually edit the puppet manifests? > > On Saturday, November 15, 2014 7:47:17 AM UTC-5, Stephen Benjamin wrote: >> >> On Fri, Nov 14, 2014 at 02:32:02PM -0800, Jerry George wrote: >> > Hi, >> > >> > >> > I just installed foreman 1.6 using the "Getting Started" guide. I >> cannot >> > login to the foreman web portal. >> >> The admin password is given at the end of the install, you can reset it >> by running: >> >> foreman-rake permissions:reset >> >> > Also if I used the standard installation foreman-postgresql module >> > seems block me out of the existing db by overwriting a bunch of stuff >> > including the listen address and access rules pg_hba. >> >> To use an existing psql database, you'd have to tell Foreman to not >> manage the DB and give it connection info. foreman-installer help has >> more info on the db options. >> >> > root@puppet-master:~# puppet resource package foreman >> > >> > package { 'foreman': >> > >> > ensure => '1.6.1-1', >> > >> > } >> > >> > root@puppet-master:~# puppet resource package foreman-postgresql >> > >> > package { 'foreman-postgresql': >> > >> > ensure => '1.6.1-1', >> > >> > } >> > >> > >> > Could you please help out or advise me with appropriate documentation? >> foreman-debug-ayp97.tar.xz >> > was uploaded to the Support rsync server that you have, in case it >> helps >> > you. >> > >> > >> > Thanks. >> > >> > -- >> > 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-user...@googlegroups.com. >> > To post to this group, send email to forema...@googlegroups.com. >> > Visit this group at http://groups.google.com/group/foreman-users. >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> Stephen Benjamin >> >> ______________________________________________________ >> Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn >> Handelsregister: Amtsgericht München, HRB 153243 >> Geschäftsführer: Charles Cachera, Michael Cunningham, >> Michael O'Neill, Charles Peters >> >> >>

> To detail further the database.yml currently match the IP address I would
> like postgresql to listen on,
>
> production:
>
> adapter: postgresql
>
> host: 172.16.15.171
>
> database: foreman
>
> username: foreman
>
> However, the foreman-installer -i seem to ignore this or perhaps am I
> missing something.

Foreman installer won't read database.yml, that's a rails thing. If
you want to configure the database, the installer provides options to
tune that (–help). Just running the foreman-installer is going to
overwrite any configuration you already have and use the defaults,
that's entirely expected.

··· On Sat, Nov 15, 2014 at 12:27:50PM -0800, Jerry George wrote:

Thanks,
Jerry

On Saturday, November 15, 2014 3:24:38 PM UTC-5, Jerry George wrote:

Thanks Stephen. That worked!

Quick question, currently the postgresql puppet manifests packaged with
the foreman-postgresql installer resets the listen address for postgres and
its associated permissions, should configure these via the foreman
interactive installer or should I manually edit the puppet manifests?

On Saturday, November 15, 2014 7:47:17 AM UTC-5, Stephen Benjamin wrote:

On Fri, Nov 14, 2014 at 02:32:02PM -0800, Jerry George wrote:

Hi,

I just installed foreman 1.6 using the “Getting Started” guide. I
cannot
login to the foreman web portal.

The admin password is given at the end of the install, you can reset it
by running:

foreman-rake permissions:reset

Also if I used the standard installation foreman-postgresql module
seems block me out of the existing db by overwriting a bunch of stuff
including the listen address and access rules pg_hba.

To use an existing psql database, you’d have to tell Foreman to not
manage the DB and give it connection info. foreman-installer help has
more info on the db options.

root@puppet-master:~# puppet resource package foreman

package { ‘foreman’:

ensure => ‘1.6.1-1’,

}

root@puppet-master:~# puppet resource package foreman-postgresql

package { ‘foreman-postgresql’:

ensure => ‘1.6.1-1’,

}

Could you please help out or advise me with appropriate documentation?
foreman-debug-ayp97.tar.xz
was uploaded to the Support rsync server that you have, in case it
helps
you.

Thanks.


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-user...@googlegroups.com.
To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters


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/d/optout.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters

Ah! Got it. Thanks for the update Stephen. Much appreciated.

··· On Sun, Nov 16, 2014 at 8:02 PM, Stephen Benjamin wrote:

On Sat, Nov 15, 2014 at 12:27:50PM -0800, Jerry George wrote:

To detail further the database.yml currently match the IP address I would
like postgresql to listen on,

production:

adapter: postgresql

host: 172.16.15.171

database: foreman

username: foreman

However, the foreman-installer -i seem to ignore this or perhaps am I
missing something.

Foreman installer won’t read database.yml, that’s a rails thing. If
you want to configure the database, the installer provides options to
tune that (–help). Just running the foreman-installer is going to
overwrite any configuration you already have and use the defaults,
that’s entirely expected.

Thanks,
Jerry

On Saturday, November 15, 2014 3:24:38 PM UTC-5, Jerry George wrote:

Thanks Stephen. That worked!

Quick question, currently the postgresql puppet manifests packaged with
the foreman-postgresql installer resets the listen address for
postgres and

its associated permissions, should configure these via the foreman
interactive installer or should I manually edit the puppet manifests?

On Saturday, November 15, 2014 7:47:17 AM UTC-5, Stephen Benjamin > wrote:

On Fri, Nov 14, 2014 at 02:32:02PM -0800, Jerry George wrote:

Hi,

I just installed foreman 1.6 using the “Getting Started” guide. I
cannot
login to the foreman web portal.

The admin password is given at the end of the install, you can reset
it

by running:

foreman-rake permissions:reset

Also if I used the standard installation foreman-postgresql module
seems block me out of the existing db by overwriting a bunch of
stuff

including the listen address and access rules pg_hba.

To use an existing psql database, you’d have to tell Foreman to not
manage the DB and give it connection info. foreman-installer help has
more info on the db options.

root@puppet-master:~# puppet resource package foreman

package { ‘foreman’:

ensure => ‘1.6.1-1’,

}

root@puppet-master:~# puppet resource package foreman-postgresql

package { ‘foreman-postgresql’:

ensure => ‘1.6.1-1’,

}

Could you please help out or advise me with appropriate
documentation?

foreman-debug-ayp97.tar.xz

was uploaded to the Support rsync server that you have, in case it
helps
you.

Thanks.


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-user...@googlegroups.com.

To post to this group, send email to forema...@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters


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/d/optout.


Stephen Benjamin


Red Hat GmbH | http://de.redhat.com/ | Sitz: Grasbrunn
Handelsregister: Amtsgericht München, HRB 153243
Geschäftsführer: Charles Cachera, Michael Cunningham,
Michael O’Neill, Charles Peters