On 23/06/16 08:34, Thomas Cheng wrote:
> Hi all,
> 
>  I've just begun to scale up Foreman as more blade servers to support.
> I've leveraged an all-in-one setup for some time before and it has been
> a very pleasure experience.
> 
>  But when I try to scale it up now -- in fact I setup a new cluster
> (1.11.3) to avoid screwing up existing setup -- it posts me many
> challenges, one of the tough one is this:
> 
>    Foreman Audits shows that settings updated too often -- cluster
> members steps on each other on options(values) like:
> 
>        oauth consumer keys/secret, ssl_priv_keys, foreman_url,
> unattended_url, etc.

oauth_consumer_key/secret is usually written in
/etc/foreman/settings.yaml on each installation when using the
installer, so you should ensure these are all the same to prevent them
changing. You can pass --foreman-oauth-consumer-key/secret to the
installer to set them (this is in addition to the similar options you've
already got).

ssl_* settings, foreman_url and unattended_url depend on the host's
FQDN, which is probably why they're changing. If you edit these under
Administer > Settings, or write them into settings.yaml, setting them to
the right FQDN and paths, then they should stay with your customisations
without being changed.

>  And, should I set the option 
> --foreman-db-manage=true?
> I am not clear how the option '--foreman-db-manage' works behind the
> scene, say, if two cluster members both set the option to 'true', does
> the second member will overwrite the first one?

db-manage controls two things:

1. Whether the installer configures a database server.
2. Whether the installer runs db:migrate/db:seed/apipie:cache:index.

If you have a shared database then it should be false as you don't
require a local database server. You also will probably not need to run
db:migrate/seed from the installer as it's already been run against the
database once.

-- 
Dominic Cleal
[email protected]

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

Reply via email to